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 ---