From 9b65b8134d1fd8b87beb206b5fe76c4eae87542a Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Mon, 7 Nov 2022 01:15:03 +0100 Subject: [PATCH] Waaaay nicer on mobiles And on desktop too : simpler layout for posts with case - all the content is centered anyway. --- config.yaml | 4 + themes/chosto/layouts/_default/single.html | 159 ++++++++++----------- themes/chosto/layouts/partials/head.html | 25 ++-- themes/chosto/layouts/partials/header.html | 92 ++++++------ themes/chosto/static/css/custom.css | 67 +++++++-- 5 files changed, 203 insertions(+), 144 deletions(-) diff --git a/config.yaml b/config.yaml index ae4a769..612c1a4 100644 --- a/config.yaml +++ b/config.yaml @@ -21,6 +21,10 @@ markup: renderer: # Render newlines as
hardWraps: true + tableOfContents: + endLevel: 3 + ordered: false + startLevel: 2 # Disable all privacy unfriendly stuff privacy: diff --git a/themes/chosto/layouts/_default/single.html b/themes/chosto/layouts/_default/single.html index 62dfc37..d94f3ae 100644 --- a/themes/chosto/layouts/_default/single.html +++ b/themes/chosto/layouts/_default/single.html @@ -5,87 +5,84 @@ with all other blog posts belonging to that case, emphasis to the current. Still use empty container if nothing to show for homogeneous layout --> - {{ if (and .IsPage (eq .FirstSection.Section "posts"))}} - {{ with .CurrentSection }} - {{ if .Params.Title }} -
-
-