Add Table of Contents

also refactor CSS
This commit is contained in:
2026-04-20 15:44:05 +02:00
parent 7ce4c02dee
commit 9639a70572
8 changed files with 187 additions and 56 deletions
+5 -6
View File
@@ -1,8 +1,7 @@
<h2 id="months">Months</h2>
{{range .Months}}
<div class="diary-section">
<h2 class="diary-heading">
<a href="{{.URL}}">{{.Name}}</a>
{{if .PhotoCount}}<span class="diary-photo-count">({{.PhotoCount}} photos)</span>{{end}}
</h2>
</div>
<h3 id="{{.ID}}">
<a href="{{.URL}}">{{.Name}}</a>
{{if .PhotoCount}}<span class="muted">({{.PhotoCount}} photos)</span>{{end}}
</h3>
{{end}}