blog/layouts/_default/list.html

25 lines
722 B
HTML
Raw Normal View History

2021-05-11 10:01:24 +02:00
{{ define "main" }}
<main>
<article>
<header>
<h1>{{.Title}}</h1>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
{{.Content}}
</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 }}