From ca1719600d37f13c0c225be599e7d0b61b4afd68 Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Thu, 19 Jun 2025 17:33:36 -0400 Subject: [PATCH] last css bug? isso thread width --- site/_includes/css/site.css | 2 +- site/_includes/page.njk | 9 +++++++++ site/pages/books.md | 2 +- site/pages/now.md | 2 +- site/pages/unoffice-hours.md | 2 +- site/pages/uses.md | 2 +- 6 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 site/_includes/page.njk diff --git a/site/_includes/css/site.css b/site/_includes/css/site.css index 1d2b165..501ba72 100644 --- a/site/_includes/css/site.css +++ b/site/_includes/css/site.css @@ -603,7 +603,7 @@ p > code { } body #isso-thread { - margin-top: 4rem; + margin: 4rem var(--inset) 0; } body .isso-postbox { diff --git a/site/_includes/page.njk b/site/_includes/page.njk new file mode 100644 index 0000000..2a03a42 --- /dev/null +++ b/site/_includes/page.njk @@ -0,0 +1,9 @@ +--- +layout: base.njk +--- +{% if not omitTOC %} +
{{ content | toc('{"tags":["h2", "h3"],"wrapper":"span"}') | safe }}
+{% endif %} +
+ {{ content | safe }} +
diff --git a/site/pages/books.md b/site/pages/books.md index 0cec01c..457bcb7 100644 --- a/site/pages/books.md +++ b/site/pages/books.md @@ -1,6 +1,6 @@ --- title: Books -layout: "post.njk" +layout: "page.njk" omitTOC: true --- These books had a big influence on my thinking and taste. diff --git a/site/pages/now.md b/site/pages/now.md index 4c4167f..aaeab5b 100644 --- a/site/pages/now.md +++ b/site/pages/now.md @@ -1,6 +1,6 @@ --- title: Now -layout: "post.njk" +layout: "page.njk" date: 2025-06-07 omitTOC: true --- diff --git a/site/pages/unoffice-hours.md b/site/pages/unoffice-hours.md index 1a2ffe4..27ea8bf 100644 --- a/site/pages/unoffice-hours.md +++ b/site/pages/unoffice-hours.md @@ -1,6 +1,6 @@ --- title: Unoffice Hours -layout: "post.njk" +layout: "page.njk" omitDate: true omitTOS: true --- diff --git a/site/pages/uses.md b/site/pages/uses.md index 0fae2e3..d6208a1 100644 --- a/site/pages/uses.md +++ b/site/pages/uses.md @@ -1,6 +1,6 @@ --- title: What I Use -layout: "post.njk" +layout: "page.njk" date: 2025-06-10 ---