Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/maxlefou/hugo.386.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index d011a1b..43fef57 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -10,7 +10,12 @@
<!-- Ranges through content/posts/*.md -->
{{ range .Pages }}
<li>
- <a href="{{.Permalink}}">{{.Date.Format "2006-01-02"}} | {{.Title}}</a>
+ <a href="{{.Permalink}}">
+ {{ if eq .Site.GetPage "/posts" }}
+ {{.Date.Format "2006-01-02"}} |
+ {{ end }}
+ {{.Title}}
+ </a>
</li>
{{ end }}
</ul>