From 0fe5f2ef50a4e8ecea214ce8cf9983c4fe5c7ed5 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Mon, 4 Aug 2025 10:28:02 +0100 Subject: [PATCH] chore: stop using the table of contents --- assets/css/single.css | 6 ------ layouts/_default/single.html | 34 ++++++++++++++-------------------- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/assets/css/single.css b/assets/css/single.css index 9f5abfd..1a5d094 100644 --- a/assets/css/single.css +++ b/assets/css/single.css @@ -1,9 +1,3 @@ -main #container { - display: grid; - grid-template-columns: auto minmax(15rem, 20rem); - column-gap: 2rem; -} - main #metadata { margin-bottom: 2rem; } diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 10e2c2a..f35584e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -5,25 +5,19 @@ {{ end }} {{ define "main" }} -
-
- {{ partial "breadcrumb.html" . }} - -
-

{{ .Title }}

-
- {{ readFile "assets/icons/calendar.svg" | safeHTML }} {{ .Date.Format .Site.Params.dateFormat }} - {{ readFile "assets/icons/clock.svg" | safeHTML }} {{ printf "%d minute(s) read" .ReadingTime }} -
-
- -
-
- {{ .Content }} -
-
-
+ {{ partial "breadcrumb.html" . }} - {{ partial "table-of-contents.html" . }} -
+
+

{{ .Title }}

+
+ {{ readFile "assets/icons/calendar.svg" | safeHTML }} {{ .Date.Format .Site.Params.dateFormat }} + {{ readFile "assets/icons/clock.svg" | safeHTML }} {{ printf "%d minute(s) read" .ReadingTime }} +
+
+ +
+
+ {{ .Content }} +
+
{{ end }}