Added a lot of different things

This commit is contained in:
Simon Martens
2024-12-02 19:32:25 +01:00
parent 3dbbe6629c
commit 51afda5ff2
17 changed files with 92 additions and 156 deletions

View File

@@ -2,7 +2,7 @@
{{ $y := .model.Year }}
{{ range $year := .model.AvailableYears }}
<a href="/{{ $year }}" aria-active="{{ eq $year $y }}">{{ $year }}</a>
<a href="/{{ $year }}" {{ if eq $year $y }}aria-current="page"{{ end }}>{{ $year }}</a>
{{ end }}
{{ range $index, $month := .model.Issues }}

View File

@@ -15,7 +15,11 @@ Issue found!
<ol>
{{ range $issue := $piece.IssueRefs }}
<li>
<a href="/{{- $issue.Datum -}}/{{- $issue.Nr -}}">
<a
href="/{{- $issue.Datum -}}/{{- $issue.Nr -}}"
{{ if and (eq $issue.Nr $model.No) (eq $issue.Datum $model.Year) }}
aria-current="page"
{{ end }}>
{{- $issue.Datum }} Nr.
{{ $issue.Nr -}}
</a>