diff options
| -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 }} |