chore: stop using the table of contents

This commit is contained in:
2025-08-04 10:28:02 +01:00
parent f2d3437701
commit 0fe5f2ef50
2 changed files with 14 additions and 26 deletions
-6
View File
@@ -1,9 +1,3 @@
main #container {
display: grid;
grid-template-columns: auto minmax(15rem, 20rem);
column-gap: 2rem;
}
main #metadata {
margin-bottom: 2rem;
}
+12 -18
View File
@@ -5,25 +5,19 @@
{{ end }}
{{ define "main" }}
<div id="container">
{{ partial "breadcrumb.html" . }}
<section id="metadata">
<h1>{{ .Title }}</h1>
<div>
{{ partial "breadcrumb.html" . }}
<section id="metadata">
<h1>{{ .Title }}</h1>
<div>
<span>{{ readFile "assets/icons/calendar.svg" | safeHTML }} {{ .Date.Format .Site.Params.dateFormat }}</span>
<span>{{ readFile "assets/icons/clock.svg" | safeHTML }} {{ printf "%d minute(s) read" .ReadingTime }}</span>
</div>
</section>
<section id="content">
<div>
{{ .Content }}
</div>
</section>
<span>{{ readFile "assets/icons/calendar.svg" | safeHTML }} {{ .Date.Format .Site.Params.dateFormat }}</span>
<span>{{ readFile "assets/icons/clock.svg" | safeHTML }} {{ printf "%d minute(s) read" .ReadingTime }}</span>
</div>
</section>
{{ partial "table-of-contents.html" . }}
</div>
<section id="content">
<div>
{{ .Content }}
</div>
</section>
{{ end }}