From d6290dcf509c84a38df667813ad3acdcf58c09f5 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 19 Dec 2019 17:22:12 +0100 Subject: #66, add taxonomy support --- layouts/posts/list.html | 10 +++------- layouts/posts/single.html | 19 ++++++++----------- 2 files changed, 11 insertions(+), 18 deletions(-) (limited to 'layouts/posts') diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 3a3eb97..6115fae 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -1,16 +1,11 @@ {{ define "main" }} - {{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }} {{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }} {{ range sort .Paginator.Pages }}

{{ .Title }}

- {{ with .Date }} -
- {{ .Format $dateFormat }} -
- {{ end }} + {{ partial "docs/post-meta" . }}

{{- .Summary -}} {{ if .Truncated }} @@ -19,9 +14,10 @@

{{ end }} + {{ template "_internal/pagination.html" . }} {{ end }} {{ define "toc" }} - + {{ partial "docs/taxonomy" . }} {{ end }} diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 69352cd..00df697 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,16 +1,13 @@ {{ define "main" }} - {{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }} -
-

{{ .Title }}

- {{ with .Date }} -
- {{ .Format $dateFormat }} -
- {{ end }} -
-
+
+

+ {{ .Title }} +

+ {{ partial "docs/post-meta" . }} +

{{- .Content -}} -

+

+
{{ end }} {{ define "toc" }} -- cgit v1.2.3