From 54f22f42eae9c20d2f4177c1711d12fdecba6c34 Mon Sep 17 00:00:00 2001 From: Hidenori MATSUKI Date: Thu, 4 Oct 2018 19:06:37 +0900 Subject: Add row for authors. --- example-site/config.toml | 1 + layouts/_default/list.html | 24 +++++++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/example-site/config.toml b/example-site/config.toml index 251b399..4493274 100644 --- a/example-site/config.toml +++ b/example-site/config.toml @@ -16,6 +16,7 @@ enableRobotsTXT = true [taxonomies] category = "categories" tag = "tags" +author = "authors" [languages] [languages.en] diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0c89331..9a36e45 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -8,14 +8,32 @@

{{ .Title }}

- {{ with .Params.Tags }}
+
+

Updated At: {{ .Lastmod.Format "2006.01.02" }}

+
+
+ {{ if .Params.Authors }} +

Author(s): + {{ with .Params.Authors }} + {{ range . }} + {{ . }} + {{ end }} + {{ end }} +

+ {{ end }} +
+
+
+ {{ .Summary }} +
+
+ {{ with .Params.Tags }} {{ range . }} {{ . }} {{ end }} + {{ end }}
- {{ end }} - {{ .Summary }}
{{ end }} -- cgit v1.2.3