From a0da04d298bc2de34fbf1762e6cd4b00894a52d7 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Thu, 14 Jul 2022 12:02:35 -0700 Subject: [PATCH] feat: add description section to section/term/taxonomies, fix header margin --- assets/styles/base.scss | 1 + layouts/_default/section.html | 3 +++ layouts/_default/taxonomy.html | 3 +++ layouts/_default/term.html | 3 +++ 4 files changed, 10 insertions(+) diff --git a/assets/styles/base.scss b/assets/styles/base.scss index db8f30d9..03561f7f 100644 --- a/assets/styles/base.scss +++ b/assets/styles/base.scss @@ -177,6 +177,7 @@ blockquote { article { & > h1 { + margin-top: 2em; font-size: 2em; } diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 2fc71443..96611c4c 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -9,6 +9,9 @@ {{partial "header.html" .}}

All {{.Title}}

+ {{with .Params.description}} +

{{.}}

+ {{end}} {{partial "page-list.html" .Paginator.Pages.ByLastmod.Reverse }} {{ template "_internal/pagination.html" .}}
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 4f0b1175..7e401ae0 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -9,6 +9,9 @@ {{partial "header.html" .}}

All {{.Title}}

+ {{with .Params.description}} +

{{.}}

+ {{end}}
{{ range .Site.Taxonomies.tags.ByCount }}
diff --git a/layouts/_default/term.html b/layouts/_default/term.html index dbee1c66..79bd4eb0 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -9,6 +9,9 @@ {{partial "header.html" .}}

Tag: {{ .Title }}

+ {{with .Params.description}} +

{{.}}

+ {{end}} {{partial "page-list.html" .Paginator.Pages}} {{ template "_internal/pagination.html" . }}