adityakumar.xyz/layouts/_default/list.html

23 lines
564 B
HTML
Raw Permalink Normal View History

2023-06-11 10:24:55 +00:00
{{ define "main" }}
<div class="container markdown top-pad">
{{ .Content }}
</div>
<div class="container">
<ul>
{{ range .Pages.ByPublishDate.Reverse }}
{{ if .Date }}
<li>
<a href="{{ .Permalink }}">{{ .Date.Format (.Site.Params.dateFormat | default ":date_medium") }} |
{{ .Title | markdownify }}</a>
</li>
{{ else }}
<li>
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</li>
{{ end }}
{{ end }}
</ul>
</div>
</body>
{{ end }}