From c008cedf7cce6b069b8410f7d9e1a2ddb7173d0c Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Sat, 21 Jun 2025 18:50:15 -0400 Subject: [PATCH] tag pages, meta keywords --- site/_includes/-header.njk | 2 +- site/_includes/base.njk | 5 +++- site/_includes/components/tagList.njk | 4 ++-- site/_includes/css/site.css | 5 ++-- site/pages/books.md | 1 + site/pages/now.md | 1 + site/pages/recipes.md | 3 +++ site/pages/tag.njk | 24 +++++++++++++++++++ site/pages/tags.njk | 15 ++++++++++++ site/pages/unoffice-hours.md | 1 + ...020-07-02-authority-consents-blind-spot.md | 3 +-- site/posts/2021-10-16-embracing-mysticism.md | 3 +-- ...2023-07-14-finally-a-coherent-worldview.md | 2 +- site/posts/2024-06-05-redesign.md | 2 +- site/posts/2025-04-24-thinking-machines.md | 3 +-- site/posts/2025-05-15-tools-of-the-trade.md | 1 - site/posts/posts.11tydata.js | 1 + 17 files changed, 61 insertions(+), 15 deletions(-) create mode 100644 site/pages/tag.njk create mode 100644 site/pages/tags.njk diff --git a/site/_includes/-header.njk b/site/_includes/-header.njk index 5df411d..266a380 100644 --- a/site/_includes/-header.njk +++ b/site/_includes/-header.njk @@ -26,7 +26,7 @@ /search -

{{ tag | capitalize if tag else title }}

+

{{ title }}

{%- if author -%} {{ author }} diff --git a/site/_includes/base.njk b/site/_includes/base.njk index 3f22dc3..d15bd8c 100644 --- a/site/_includes/base.njk +++ b/site/_includes/base.njk @@ -2,7 +2,7 @@ title: Joshua's Homepage --- -{%- set computedTitle = tag | capitalize if tag else title -%} +{%- set computedTitle = tag | capitalize if tag and not useTitle else title -%} @@ -19,6 +19,9 @@ title: Joshua's Homepage {{ computedTitle }} - {{ site.title }} + {%- if keywords -%} + + {%- endif %} diff --git a/site/_includes/components/tagList.njk b/site/_includes/components/tagList.njk index 467d0fd..e75e475 100644 --- a/site/_includes/components/tagList.njk +++ b/site/_includes/components/tagList.njk @@ -1,10 +1,10 @@ {% macro tagList(tags) %} - + {%- for tag in tags -%} {{ tag }} {% endfor -%} diff --git a/site/_includes/css/site.css b/site/_includes/css/site.css index 90becb4..1e22cc5 100644 --- a/site/_includes/css/site.css +++ b/site/_includes/css/site.css @@ -1,6 +1,6 @@ :root { font-size: 16px; - font-size: clamp(14px, 8px + 0.65vw, 24px); + font-size: clamp(14px, 8px + 0.65vw, 30px); box-sizing: border-box; display: flex; flex-direction: column; @@ -139,6 +139,7 @@ a[href] { nav label:has(input:focus-visible), nav label:has(input:checked) { outline: none; + color: var(--c-text-dark); background-color: var(--c-accent); box-shadow: 0 0 0.5rem var(--c-accent), @@ -161,7 +162,7 @@ nav label:has(input:focus-visible) { &::before { content: "#"; } - color: oklch(var(--tag-luminance) 0.25 calc(222.5 * var(--tagIndex, 0)) / 0.8); + color: oklch(var(--tag-luminance) 0.25 calc(25 + 360 * var(--tagIndex, 0) / var(--totalTags, 1)) / 0.8); } main p img { diff --git a/site/pages/books.md b/site/pages/books.md index 457bcb7..de096c6 100644 --- a/site/pages/books.md +++ b/site/pages/books.md @@ -2,6 +2,7 @@ title: Books layout: "page.njk" omitTOC: true +keywords: books --- These books had a big influence on my thinking and taste. diff --git a/site/pages/now.md b/site/pages/now.md index aaeab5b..3cff963 100644 --- a/site/pages/now.md +++ b/site/pages/now.md @@ -3,6 +3,7 @@ title: Now layout: "page.njk" date: 2025-06-07 omitTOC: true +keywords: now --- I live in Southbridge, Massachusetts since 2022, with my wife Sara and our three cats. We're starting to get more integrated here. I'm about to start a new role, my third or fourth startup depending on how you count it. I'm active in [a local church](https://www.stmichaelorthodox.com/). I recently changed my mind about olives (I like them now). diff --git a/site/pages/recipes.md b/site/pages/recipes.md index fe4f12e..1ac1214 100644 --- a/site/pages/recipes.md +++ b/site/pages/recipes.md @@ -1 +1,4 @@ +--- +keywords: recipes +--- My most-made or most-requested recipes: diff --git a/site/pages/tag.njk b/site/pages/tag.njk new file mode 100644 index 0000000..e876f84 --- /dev/null +++ b/site/pages/tag.njk @@ -0,0 +1,24 @@ +--- +layout: "base.njk" +eleventyComputed: + title: "Posts tagged #{{ tag }}" +pagination: + data: collections + size: 1 + alias: tag + filter: + - posts + - recipes + - timeline +permalink: /tags/{{ tag | slugify }}/ +useTitle: true +--- +{%- from "components/collectionList.njk" import collectionList with context -%} +
+
+ {{ content | safe }} +
+ {% if collections[tag] %} + {{ collectionList(collections[tag]) }} + {% endif %} +
diff --git a/site/pages/tags.njk b/site/pages/tags.njk new file mode 100644 index 0000000..97f56a8 --- /dev/null +++ b/site/pages/tags.njk @@ -0,0 +1,15 @@ +--- +layout: base.njk +title: Tags +permalink: /tags/ +--- +
+
    + {%- for tag, data in collections.categories -%} +
  • + {{tag}} + +
  • + {%- endfor -%} +
+
diff --git a/site/pages/unoffice-hours.md b/site/pages/unoffice-hours.md index 27ea8bf..c568ec0 100644 --- a/site/pages/unoffice-hours.md +++ b/site/pages/unoffice-hours.md @@ -3,6 +3,7 @@ title: Unoffice Hours layout: "page.njk" omitDate: true omitTOS: true +keywords: Unoffice hours --- Working remotely has a lot of benefits, but we miss out on the serendipitous connections and socialization that happened just from being in the same room. Unoffice hours is part of an attempt to make new connections, but without applying the giant invisible filter of my own preferences. diff --git a/site/posts/2020-07-02-authority-consents-blind-spot.md b/site/posts/2020-07-02-authority-consents-blind-spot.md index 6ef6818..f3dfb3c 100644 --- a/site/posts/2020-07-02-authority-consents-blind-spot.md +++ b/site/posts/2020-07-02-authority-consents-blind-spot.md @@ -2,8 +2,7 @@ title: Authority - Consent's Blind Spot description: Authority is the idea that certain people are justified in violating consent. This belief allows people to force others to do what they want with a clear conscience. tags: - - opinions - - worldview + - ethos --- > 2025 disclaimer: I haven't thought through all these ideas in a while, but I probably would change some of this or soften/rephrase it. diff --git a/site/posts/2021-10-16-embracing-mysticism.md b/site/posts/2021-10-16-embracing-mysticism.md index 79b42f2..7261b0a 100644 --- a/site/posts/2021-10-16-embracing-mysticism.md +++ b/site/posts/2021-10-16-embracing-mysticism.md @@ -2,9 +2,8 @@ title: Embracing Mysticism description: Society is moving from a materialistic era into a mystical one. I describe my attempt to gain mystical proficiency. tags: - - opinions - faith - - worldview + - ethos --- Logical arguments no longer work. This has been especially visible in the pandemic response in 2020. If you dug even a little below the surface of any mainstream narrative in the past two years, you likely found points of disagreement. But showing people scientific papers, charts, statistical analysis, or other types of evidence accomplishes nothing, or worse it invites accusations of being part of the Other Team, one of those backwards, wrong, stupid people. diff --git a/site/posts/2023-07-14-finally-a-coherent-worldview.md b/site/posts/2023-07-14-finally-a-coherent-worldview.md index 71dc477..e2989d5 100644 --- a/site/posts/2023-07-14-finally-a-coherent-worldview.md +++ b/site/posts/2023-07-14-finally-a-coherent-worldview.md @@ -3,7 +3,7 @@ title: Finally, a Coherent Worldview description: Why did I think I could figure everything out on my own? tags: - faith - - worldview + - ethos --- Around the time of my previous post, I had just been received into the Orthodox church. Since then I have found it to be everything I was looking for, and a great deal more. There is such a wealth of wisdom, going back thousands of years. And it was all there, un-seen, un-read, as far as I was concerned not existing at all! It seems impossible to me that I was so unaware of these treasures by chance. diff --git a/site/posts/2024-06-05-redesign.md b/site/posts/2024-06-05-redesign.md index e65dfcb..75cbb11 100644 --- a/site/posts/2024-06-05-redesign.md +++ b/site/posts/2024-06-05-redesign.md @@ -2,7 +2,7 @@ title: Site design updated description: New look, simpler tech. tags: - - this site + - technical --- New design! The tools I used before have a lot of unmaintained or outdated dependencies and I wanted something a little simpler. The new site uses [pnpm](https://pnpm.io/), [11ty](https://www.11ty.dev/), and [Nunjucks](https://mozilla.github.io/nunjucks/). Content is still in [markdown](https://daringfireball.net/projects/markdown/). diff --git a/site/posts/2025-04-24-thinking-machines.md b/site/posts/2025-04-24-thinking-machines.md index f29121f..2419e02 100644 --- a/site/posts/2025-04-24-thinking-machines.md +++ b/site/posts/2025-04-24-thinking-machines.md @@ -4,8 +4,7 @@ slug: thinking-machines description: "The computers will start thinking, and people will stop." cover: "/2025-04-24--computers-will-start-thinking.jpg" tags: - - opinions - - trends + - zeitgeist - ai --- diff --git a/site/posts/2025-05-15-tools-of-the-trade.md b/site/posts/2025-05-15-tools-of-the-trade.md index d4773f9..40ff74c 100644 --- a/site/posts/2025-05-15-tools-of-the-trade.md +++ b/site/posts/2025-05-15-tools-of-the-trade.md @@ -5,7 +5,6 @@ description: Some dev tools I recommend. tags: - technical - software - - opinions --- Everyone has different tools that they find especially effective. Here are some I have found with a few words about why I like them. diff --git a/site/posts/posts.11tydata.js b/site/posts/posts.11tydata.js index 1dabe26..4f5c77d 100644 --- a/site/posts/posts.11tydata.js +++ b/site/posts/posts.11tydata.js @@ -6,6 +6,7 @@ export default { eleventyComputed: { date: "{{ page.date }}", slug: "{{ page.slug }}", + keywords: (data) => data.tags.join(", "), permalink: (data) => { if (process.env.ELEVENTY_RUN_MODE !== "build") return data.permalink; else return data.draft ? false : data.permalink;