diff options
| -rw-r--r-- | layouts/categories/term.html | 30 | ||||
| -rw-r--r-- | layouts/term/term.html | 7 |
2 files changed, 30 insertions, 7 deletions
diff --git a/layouts/categories/term.html b/layouts/categories/term.html new file mode 100644 index 00000000..a1ed5c51 --- /dev/null +++ b/layouts/categories/term.html @@ -0,0 +1,30 @@ +{{ define "main" }} + <article class="posts termlist-page"> + {{ partial "components/post-page-header.html" . }} + {{ partial "components/breadcrumbs.html" . }} + + {{ with .Params.description }} + <div class="taxonomy-description markdown-body"> + {{ . | markdownify }} + <hr /> + </div> + {{ end }} + + <div class="term-list"> + <ul class="term-list-posts"> + {{ range where .Pages "Section" "ne" "cards" }} + <li> + <a href="{{ .RelPermalink }}" data-umami-event="Click Post Link from Category Page"> + {{ .Title }}{{ with .Params.subtitle }}:<span class="posts-subtitle">{{. }}</span> + {{ end }} + </a> + <time> + {{ .Date.Format "2006-1-2" }} + </time> + </li> + {{ end }} + </ul> + </div> + </article> + {{ partial "footer.html" . }} +{{ end }} diff --git a/layouts/term/term.html b/layouts/term/term.html index 7d17833a..a042d583 100644 --- a/layouts/term/term.html +++ b/layouts/term/term.html @@ -3,13 +3,6 @@ {{ partial "components/post-page-header.html" . }} {{ partial "components/breadcrumbs.html" . }} - {{ with .Params.description }} - <div class="taxonomy-description markdown-body"> - {{ . | markdownify }} - <hr /> - </div> - {{ end }} - <div class="term-list"> <ul class="term-list-posts"> {{ range where .Pages "Section" "ne" "cards" }} |
