From ca8d4a31cdcfa059f661856a747f8ae4d9c188d9 Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Wed, 18 Feb 2026 16:29:21 -0800 Subject: [PATCH] truckin along, we got a postlist now --- _includes/head-content.njk | 28 ++++ _includes/layouts/base-no-anchors.njk | 13 ++ _includes/layouts/base.njk | 26 +--- _includes/postlist.njk | 8 +- css/highlighting.css | 126 ++++++++++++++++ css/main.css | 35 +---- css/nav.css | 1 + css/postlist.css | 168 +++++++++++++++++++++ css/print.css | 85 +++++++++++ eleventy.config.js | 4 + package-lock.json | 71 ++++++++- package.json | 3 +- src/index.njk | 3 +- src/pages/colophon.md | 16 ++ src/posts/2026/2026-01-05-moving-images.md | 3 + src/posts/2026/2026-02-17-sample.md | 2 + src/src.11tydata.js | 3 - 17 files changed, 526 insertions(+), 69 deletions(-) create mode 100644 _includes/head-content.njk create mode 100644 _includes/layouts/base-no-anchors.njk create mode 100644 css/highlighting.css create mode 100644 css/postlist.css create mode 100644 css/print.css delete mode 100644 src/src.11tydata.js diff --git a/_includes/head-content.njk b/_includes/head-content.njk new file mode 100644 index 0000000..e8d6b1a --- /dev/null +++ b/_includes/head-content.njk @@ -0,0 +1,28 @@ + + + +{{ title or metadata.title }} + +{# #} + + + + + + + + +{# Fonts #} + + + + +{# Icons #} + + +{# Styles #} + + + + + diff --git a/_includes/layouts/base-no-anchors.njk b/_includes/layouts/base-no-anchors.njk new file mode 100644 index 0000000..dd5d9d2 --- /dev/null +++ b/_includes/layouts/base-no-anchors.njk @@ -0,0 +1,13 @@ + + + {% include "head-content.njk" %} + + + {% include "header.njk" %} + +
+ {{ content | safe }} +
+ + {% include "footer.njk" %} + diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 33d59e9..dd5d9d2 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -1,30 +1,6 @@ - - - - {{ title or metadata.title }} - - {# #} - - - - - - - - - {# Styles #} - - - - {# Fonts #} - - - - - {# Icons #} - + {% include "head-content.njk" %} {% include "header.njk" %} diff --git a/_includes/postlist.njk b/_includes/postlist.njk index cb892d6..df358b8 100644 --- a/_includes/postlist.njk +++ b/_includes/postlist.njk @@ -1,12 +1,12 @@ -
    +
      {% for post in postlist %} -
    1. - +
    2. + {% if post.data.image %} {{ post.data.image.alt }} {% endif %}

      {{ post.data.title }}

      -
        +