hugo-theme-introduction/layouts/_default/list.html

22 lines
620 B
HTML
Raw Normal View History

2018-07-01 08:09:29 +00:00
{{ define "main" }}
<div class="container markdown top-pad">
{{ .Content }}
2017-11-13 21:01:53 +00:00
</div>
2018-07-01 08:09:29 +00:00
<div class="container">
<ul>
2018-07-20 15:27:32 +00:00
{{ range .Pages.ByPublishDate.Reverse }}
{{ if .Date }}
2018-07-01 08:09:29 +00:00
<li>
2020-05-31 18:12:41 +00:00
<a href="{{ .Permalink }}">{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} | {{ .Title | markdownify }}</a>
2018-07-01 08:09:29 +00:00
</li>
{{ else }}
<li>
2020-05-31 18:12:41 +00:00
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</li>
{{ end }}
2018-07-01 08:09:29 +00:00
{{ end }}
</ul>
2017-11-13 21:01:53 +00:00
</div>
</body>
2018-07-01 08:09:29 +00:00
{{ end }}