1
Fork 0
theorangeone.net-legacy/layouts/posts/list.html
Jake Howard d95f1e1bf0
Update templates so getting child pages is more sane
I think this is a layover from when I tried to do weird things
2020-02-22 15:25:03 +00:00

25 lines
742 B
HTML

{{ define "main" }}
<div id="main">
<div class="container">
{{ partial "content.html" . }}
{{ if .Content }}
<hr />
{{ end }}
{{ range .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 }}