mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-22 22:52:54 +00:00
21 lines
592 B
HTML
21 lines
592 B
HTML
{{ 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 "Jan 02, 2006") }} | {{ .Title }}</a>
|
|
</li>
|
|
{{ else }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
{{ end }}
|