BUGFIX: render issues index page

This commit is contained in:
Simon Martens
2024-12-23 21:52:06 +01:00
parent 0abb3b1ad7
commit d8892941a6
2 changed files with 12 additions and 4 deletions

View File

@@ -5,21 +5,21 @@
{{ range $index, $month := .model.Issues }}
<!-- Month Header -->
{{ $first := index $month 0 }}
<h2>{{ MonthNameShort $first.Month }}</h2>
<h2>{{ (MonthName $first.Datum.When.Month).Short }}</h2>
<!-- Issues -->
{{ range $issue := $month }}
{{ $date := GetDate $issue.Datum.When.String }}
{{ $date := $issue.Datum.When }}
<a href="/{{ $y }}/{{ $issue.Number.No }}">
<div>
{{ $issue.Number.No }}
</div>
<div>
{{ $date.Wd }}
{{ (WeekdayName $date.Weekday).Short }}
</div>
<div>{{ $date.DayNo }}.{{ index $date.MonthNo }}.</div>
<div>{{ $date.Day }}.{{ index $date.Month }}.</div>
</a>
{{ end }}
{{ end }}