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

github.com/vickylaixy/hugo-theme-introduction.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.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index f102ef5..d7d6065 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -2,12 +2,11 @@
<div class="container markdown top-pad">
{{ .Content }}
</div>
- <!-- Begin container -->
<div class="container">
<ul>
- {{ range .Pages.ByPublishDate }}
+ {{ range .Pages.ByPublishDate.Reverse }}
<li>
- <a href="{{.Permalink}}">{{.Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} | {{.Title}}</a>
+ <a href="{{ .Permalink }}">{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} | {{ .Title }}</a>
</li>
{{ end }}
</ul>