1
Fork 0

Make ids match what's shown

This commit is contained in:
Jake Howard 2020-09-12 00:01:43 +01:00
parent ff80f78a82
commit 46426c57b2
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -13,9 +13,10 @@
{{ range .Pages.GroupByDate "2006-01" }}
{{ $month := print .Key "-01" }}
<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>
{{ $display := dateFormat "2006-01" $month }}
<h3 class="mt-5" id="{{ $display }}">
<a href="#{{ $display }}" class="no-color-change">
<time datetime="{{ $month }}" title='{{ dateFormat "January 2006" $month }}'>{{ $display }}</time>
</a>
</h3>
{{ range (sort .Pages "Date" "desc") }}