Skip to content

Commit

Permalink
feat: add description section to section/term/taxonomies, fix header …
Browse files Browse the repository at this point in the history
…margin
  • Loading branch information
jackyzha0 committed Jul 14, 2022
1 parent 7ccff2c commit b2555ce
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/styles/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ blockquote {

article {
& > h1 {
margin-top: 2em;
font-size: 2em;
}

Expand Down
3 changes: 3 additions & 0 deletions layouts/_default/section.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
{{partial "header.html" .}}
<article>
<h1>All {{.Title}}</h1>
{{with .Params.description}}
<p>{{.}}</p>
{{end}}
{{partial "page-list.html" .Paginator.Pages.ByLastmod.Reverse }}
{{ template "_internal/pagination.html" .}}
</article>
Expand Down
3 changes: 3 additions & 0 deletions layouts/_default/taxonomy.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
{{partial "header.html" .}}
<article>
<h1>All {{.Title}}</h1>
{{with .Params.description}}
<p>{{.}}</p>
{{end}}
<div class="tags">
{{ range .Site.Taxonomies.tags.ByCount }}
<div class="meta">
Expand Down
3 changes: 3 additions & 0 deletions layouts/_default/term.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
{{partial "header.html" .}}
<article>
<h1>Tag: {{ .Title }}</h1>
{{with .Params.description}}
<p>{{.}}</p>
{{end}}
{{partial "page-list.html" .Paginator.Pages}}
{{ template "_internal/pagination.html" . }}
</article>
Expand Down

0 comments on commit b2555ce

Please sign in to comment.