From 3a780ebefebebf866c7ce108d7b163f708f759c0 Mon Sep 17 00:00:00 2001 From: morph Date: Tue, 26 May 2020 17:39:14 +0200 Subject: [PATCH] fix posts list --- layouts/_default/list.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" }}
+ {{ $listtitle := .Title }} {{ if or .Title .Content }}
{{ with .Title }}

{{ . }}

{{ end }} @@ -11,7 +12,11 @@ {{ range .Paginator.Pages }}
  • - {{ .Date.Format "2006-01-02" }} {{.Title }} + {{ if eq $listtitle "Posts" }} + {{ .Date.Format "2006-01-02" }} {{.Title }} + {{ else }} + {{.Title }} + {{ end }}
  • {{ end }}