blog/themes/chosto/layouts/_default/list.html

22 lines
657 B
HTML
Raw Normal View History

2021-05-11 10:01:24 +02:00
{{ define "main" }}
<main>
<article>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
2021-05-18 16:22:28 +02:00
{{ .Content }}
2021-05-11 10:01:24 +02:00
</article>
<ul>
<!-- Ranges through content/posts/*.md -->
2021-05-11 11:56:23 +02:00
{{ range .Site.RegularPages }}
2021-05-11 10:01:24 +02:00
<li>
2021-05-11 11:56:23 +02:00
<a href="{{.Permalink}}">
<time class="post-date" datetime="{{ .Date.Format `2006-01-02T15:04:05Z07:00` | safeHTML }}">
{{ .Date.Day }} {{ index $.Site.Data.months_fr (printf "%d" .Date.Month) }} {{ .Date.Year }}
</time>
| {{.Title}}
</a>
2021-05-11 10:01:24 +02:00
</li>
{{ end }}
</ul>
</main>
{{ end }}