diff options
author | Hidenori MATSUKI <MATSUKI.Hidenori@gmail.com> | 2018-10-04 13:06:37 +0300 |
---|---|---|
committer | Hidenori MATSUKI <MATSUKI.Hidenori@gmail.com> | 2018-10-04 13:06:37 +0300 |
commit | 54f22f42eae9c20d2f4177c1711d12fdecba6c34 (patch) | |
tree | ed8c2ac97f269b4362ade78602a3f9a45710d36e | |
parent | 76126e055937d7aab4c75f010667bbac58a9cfb6 (diff) |
Add row for authors.
-rw-r--r-- | example-site/config.toml | 1 | ||||
-rw-r--r-- | 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 @@ <div class="row"> <h3><a href="{{ .RelPermalink}}">{{ .Title }}</a></h3> </div> - {{ with .Params.Tags }} <div class="row"> + <div class="col-lg-3"> + <p>Updated At: {{ .Lastmod.Format "2006.01.02" }}</p> + </div> + <div class="col-lg-9"> + {{ if .Params.Authors }} + <p>Author(s): + {{ with .Params.Authors }} + {{ range . }} + <a class="ml-1 badge badge-pill badge-secondary" href="{{ "/authors/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> + {{ end }} + {{ end }} + </p> + {{ end }} + </div> + </div> + <div class="row"> + {{ .Summary }} + </div> + <div class="row"> + {{ with .Params.Tags }} {{ range . }} <a class="ml-1 badge badge-pill badge-secondary" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> {{ end }} + {{ end }} </div> - {{ end }} - {{ .Summary }} </article> <hr/> {{ end }} |