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
+2 -1
View File
@@ -61,10 +61,11 @@
<div class="content">{{.Content}}</div>
{{end}}
{{if .SpecialContent}}
<div class="diary">{{.SpecialContent}}</div>
<div class="content">{{.SpecialContent}}</div>
{{end}}
{{if or .Content .SpecialContent}}
<script src="/_/content.js"></script>
<script src="/_/toc.js"></script>
{{end}}
{{if .Content}}
<script src="/_/sections.js"></script>