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 }}
|
||||
<hr class="my-5" />
|
||||
{{ else }}
|
||||
<h3 class="mt-5">
|
||||
<time datetime="{{ $month }}" title='{{ dateFormat "January 2006" $month }}'>{{ dateFormat "2006-01" $month }}</time>
|
||||
<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") }}
|
||||
|
|
|
@ -257,3 +257,9 @@ p code, li code {
|
|||
.mermaid {
|
||||
font-size: $font-size-base;
|
||||
}
|
||||
|
||||
a.no-color-change {
|
||||
&, &:hover {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue