diff options
| author | morph <morph@posteo.de> | 2020-05-26 17:39:14 +0200 |
|---|---|---|
| committer | morph <morph@posteo.de> | 2020-05-26 17:39:14 +0200 |
| commit | 3a780ebefebebf866c7ce108d7b163f708f759c0 (patch) | |
| tree | 7288c107a44c4955ac37de75d488eca21c37d42a /layouts | |
| parent | 14b5e092f2f5a035b42795ecc1b46d8788f1ab8c (diff) | |
fix posts list
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/list.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 6fb6928..1a1abce 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,6 @@ {{ define "main" }} <main> + {{ $listtitle := .Title }} {{ if or .Title .Content }} <div> {{ with .Title }}<h1>{{ . }}</h1>{{ end }} @@ -11,7 +12,11 @@ {{ range .Paginator.Pages }} <li> <div class="post-title"> - {{ .Date.Format "2006-01-02" }} <a href="{{ .RelPermalink }}">{{.Title }}</a> + {{ if eq $listtitle "Posts" }} + {{ .Date.Format "2006-01-02" }} <a href="{{ .RelPermalink }}">{{.Title }}</a> + {{ else }} + <a href="{{ .RelPermalink }}">{{.Title }}</a> + {{ end }} </div> </li> {{ end }} |