From 24ce8b936dc0d44e061fbdafa4f3f6c5828d983e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 22 Dec 2017 17:16:20 +0000 Subject: [PATCH] Simplify tag display, and show on list page --- layouts/partials/content-details.html | 9 +++++++++ layouts/partials/content.html | 12 +----------- layouts/partials/list_item.html | 3 ++- 3 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 layouts/partials/content-details.html diff --git a/layouts/partials/content-details.html b/layouts/partials/content-details.html new file mode 100644 index 0000000..717c40a --- /dev/null +++ b/layouts/partials/content-details.html @@ -0,0 +1,9 @@ + {{ if .Params.date }} + {{ .Date.Format "2006-01-02" }} + {{ end }} + + {{ if .Params.tags }} + {{ range $i, $e := .Params.tags }} + #{{ . }} + {{ end }} + {{ end }} diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 4f308d4..2aa2b1e 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -3,17 +3,7 @@ {{ end }}

{{ .Title }}

{{ partial "subtitle.html" . }}
-

- {{ if .Params.date }} - {{ .Date.Format "2006-01-02" }} - {{ end }} - - {{ range .Params.tags }} - - {{ . }} - - {{ end }} -

+

{{ partial "content-details.html" . }}


{{ if .TableOfContents }} diff --git a/layouts/partials/list_item.html b/layouts/partials/list_item.html index ebc40d7..1b4f608 100644 --- a/layouts/partials/list_item.html +++ b/layouts/partials/list_item.html @@ -8,8 +8,9 @@ {{ end }}
-
{{ .Title }}
+
{{ .Title }}
+ {{ partial "content-details.html" . }}

{{ partial "summary.html" . }}