Make dates hash links
This commit is contained in:
parent
8056c37d92
commit
0f80e3ad97
2 changed files with 10 additions and 2 deletions
|
@ -8,8 +8,10 @@
|
||||||
{{ if (index .Pages 0).Date.IsZero }}
|
{{ if (index .Pages 0).Date.IsZero }}
|
||||||
<hr class="my-5" />
|
<hr class="my-5" />
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<h3 class="mt-5">
|
<h3 class="mt-5" id="{{ $month }}">
|
||||||
<time datetime="{{ $month }}" title='{{ dateFormat "January 2006" $month }}'>{{ dateFormat "2006-01" $month }}</time>
|
<a href="#{{ $month }}" class="no-color-change">
|
||||||
|
<time datetime="{{ $month }}" title='{{ dateFormat "January 2006" $month }}'>{{ dateFormat "2006-01" $month }}</time>
|
||||||
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range (sort .Pages "Date" "desc") }}
|
{{ range (sort .Pages "Date" "desc") }}
|
||||||
|
|
|
@ -257,3 +257,9 @@ p code, li code {
|
||||||
.mermaid {
|
.mermaid {
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.no-color-change {
|
||||||
|
&, &:hover {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue