index endpoint start

This commit is contained in:
Simon Martens
2024-11-16 02:30:20 +01:00
parent d4feb20f07
commit 527fbfa000
14 changed files with 230 additions and 25 deletions

View File

@@ -1,3 +1,19 @@
{{ define "body" }}
<p>Change! Hello from body</p>
{{ range $year := .model.AvailableYears }}
<a href="/{{ $year }}">{{ $year }}</a>
{{ end }}
{{ range $issue := .model.Issues }}
<div>
<div>
{{ $issue.Number.Chardata }}
</div>
<div>
{{ index $issue.Month 1 }}
</div>
<div>
{{ index $issue.Weekday 1 }}
</div>
<div>{{ $issue.Day }}.{{ index $issue.Month 2 }}.</div>
</div>
{{ end }}
{{ end }}