1
Fork 0

Make dates hash links

This commit is contained in:
Jake Howard 2018-02-22 20:51:46 +00:00
parent 8056c37d92
commit 0f80e3ad97
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 10 additions and 2 deletions

View file

@ -8,8 +8,10 @@
{{ if (index .Pages 0).Date.IsZero }}
<hr class="my-5" />
{{ else }}
<h3 class="mt-5">
<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") }}

View file

@ -257,3 +257,9 @@ p code, li code {
.mermaid {
font-size: $font-size-base;
}
a.no-color-change {
&, &:hover {
color: inherit;
}
}