25 lines
747 B
HTML
25 lines
747 B
HTML
{{ define "main" }}
|
|
<div id="main">
|
|
<div class="container">
|
|
{{ partial "content.html" . }}
|
|
{{ if .Content }}
|
|
<hr />
|
|
{{ end }}
|
|
{{ range .Data.Pages.GroupByDate "2006-01" }}
|
|
{{ $month := print .Key "-01" }}
|
|
{{ if (index .Pages 0).Date.IsZero }}
|
|
<hr class="my-5" />
|
|
{{ else }}
|
|
<h3 class="mt-5" id="{{ $month }}">
|
|
<a href="#{{ $month }}" class="no-color-change">
|
|
<time datetime="{{ $month }}" title='{{ dateFormat "January 2006" $month }}'>{{ dateFormat "2006-01" $month }}</time>
|
|
</a>
|
|
</h3>
|
|
{{ end }}
|
|
{{ range (sort .Pages "Date" "desc") }}
|
|
{{ partial "list_item.html" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|