tag pages, meta keywords
This commit is contained in:
parent
04e4b0e51e
commit
c008cedf7c
17 changed files with 61 additions and 15 deletions
|
@ -26,7 +26,7 @@
|
||||||
<a class="{{ 'nav-active' if '/search' in page.url }}" href="{{ "/search/" | url }}">/search</a>
|
<a class="{{ 'nav-active' if '/search' in page.url }}" href="{{ "/search/" | url }}">/search</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<h1>{{ tag | capitalize if tag else title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
<div class="header-meta">
|
<div class="header-meta">
|
||||||
{%- if author -%}
|
{%- if author -%}
|
||||||
<author>{{ author }}</author>
|
<author>{{ author }}</author>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
title: Joshua's Homepage
|
title: Joshua's Homepage
|
||||||
---
|
---
|
||||||
|
|
||||||
{%- set computedTitle = tag | capitalize if tag else title -%}
|
{%- set computedTitle = tag | capitalize if tag and not useTitle else title -%}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
@ -19,6 +19,9 @@ title: Joshua's Homepage
|
||||||
<link rel="webmention" href="https://webmention.io/joshua.seigler.net/webmention"/>
|
<link rel="webmention" href="https://webmention.io/joshua.seigler.net/webmention"/>
|
||||||
<title>{{ computedTitle }} - {{ site.title }}</title>
|
<title>{{ computedTitle }} - {{ site.title }}</title>
|
||||||
<meta name="description" content="{{ description }}"/>
|
<meta name="description" content="{{ description }}"/>
|
||||||
|
{%- if keywords -%}
|
||||||
|
<meta name="keywords" content="{{ keywords }}">
|
||||||
|
{%- endif %}
|
||||||
<meta property="og:title" content="{{ computedTitle }}"/>
|
<meta property="og:title" content="{{ computedTitle }}"/>
|
||||||
<meta property="og:type" content="{{ article }}"/>
|
<meta property="og:type" content="{{ article }}"/>
|
||||||
<meta property="og:url" content="{{ page.url | absoluteURL }}"/>
|
<meta property="og:url" content="{{ page.url | absoluteURL }}"/>
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{% macro tagList(tags) %}
|
{% macro tagList(tags) %}
|
||||||
<span class="tags">
|
<span class="tags" style="--totalTags:{{ collections.categories | dictsort | length }}">
|
||||||
{%- for tag in tags -%}
|
{%- for tag in tags -%}
|
||||||
<a
|
<a
|
||||||
class="tag"
|
class="tag"
|
||||||
style="--tagIndex:{{ collections.categories[tag].id }}"
|
style="--tagIndex:{{ collections.categories[tag].id }}"
|
||||||
href="/posts/tag/{{ tag | slugify }}"
|
href="/tags/{{ tag | slugify }}"
|
||||||
>{{ tag }}</a>
|
>{{ tag }}</a>
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
:root {
|
:root {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-size: clamp(14px, 8px + 0.65vw, 24px);
|
font-size: clamp(14px, 8px + 0.65vw, 30px);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -139,6 +139,7 @@ a[href] {
|
||||||
nav label:has(input:focus-visible),
|
nav label:has(input:focus-visible),
|
||||||
nav label:has(input:checked) {
|
nav label:has(input:checked) {
|
||||||
outline: none;
|
outline: none;
|
||||||
|
color: var(--c-text-dark);
|
||||||
background-color: var(--c-accent);
|
background-color: var(--c-accent);
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 0 0.5rem var(--c-accent),
|
0 0 0.5rem var(--c-accent),
|
||||||
|
@ -161,7 +162,7 @@ nav label:has(input:focus-visible) {
|
||||||
&::before {
|
&::before {
|
||||||
content: "#";
|
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 {
|
main p img {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Books
|
title: Books
|
||||||
layout: "page.njk"
|
layout: "page.njk"
|
||||||
omitTOC: true
|
omitTOC: true
|
||||||
|
keywords: books
|
||||||
---
|
---
|
||||||
These books had a big influence on my thinking and taste.
|
These books had a big influence on my thinking and taste.
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ title: Now
|
||||||
layout: "page.njk"
|
layout: "page.njk"
|
||||||
date: 2025-06-07
|
date: 2025-06-07
|
||||||
omitTOC: true
|
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).
|
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).
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
|
---
|
||||||
|
keywords: recipes
|
||||||
|
---
|
||||||
My most-made or most-requested recipes:
|
My most-made or most-requested recipes:
|
||||||
|
|
24
site/pages/tag.njk
Normal file
24
site/pages/tag.njk
Normal file
|
@ -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 -%}
|
||||||
|
<main>
|
||||||
|
<section data-pagefind-body>
|
||||||
|
{{ content | safe }}
|
||||||
|
</section>
|
||||||
|
{% if collections[tag] %}
|
||||||
|
{{ collectionList(collections[tag]) }}
|
||||||
|
{% endif %}
|
||||||
|
</main>
|
15
site/pages/tags.njk
Normal file
15
site/pages/tags.njk
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
layout: base.njk
|
||||||
|
title: Tags
|
||||||
|
permalink: /tags/
|
||||||
|
---
|
||||||
|
<main>
|
||||||
|
<ul class="collection">
|
||||||
|
{%- for tag, data in collections.categories -%}
|
||||||
|
<li>
|
||||||
|
<a class="tag" href="/posts/tag/{{tag | slugify}}">{{tag}}</a>
|
||||||
|
<aside>{{ data.count }}</aside>
|
||||||
|
</li>
|
||||||
|
{%- endfor -%}
|
||||||
|
</ul>
|
||||||
|
</main>
|
|
@ -3,6 +3,7 @@ title: Unoffice Hours
|
||||||
layout: "page.njk"
|
layout: "page.njk"
|
||||||
omitDate: true
|
omitDate: true
|
||||||
omitTOS: 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.
|
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.
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
title: Authority - Consent's Blind Spot
|
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.
|
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:
|
tags:
|
||||||
- opinions
|
- ethos
|
||||||
- worldview
|
|
||||||
---
|
---
|
||||||
|
|
||||||
> 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.
|
> 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.
|
||||||
|
|
|
@ -2,9 +2,8 @@
|
||||||
title: Embracing Mysticism
|
title: Embracing Mysticism
|
||||||
description: Society is moving from a materialistic era into a mystical one. I describe my attempt to gain mystical proficiency.
|
description: Society is moving from a materialistic era into a mystical one. I describe my attempt to gain mystical proficiency.
|
||||||
tags:
|
tags:
|
||||||
- opinions
|
|
||||||
- faith
|
- 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.
|
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.
|
||||||
|
|
|
@ -3,7 +3,7 @@ title: Finally, a Coherent Worldview
|
||||||
description: Why did I think I could figure everything out on my own?
|
description: Why did I think I could figure everything out on my own?
|
||||||
tags:
|
tags:
|
||||||
- faith
|
- 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.
|
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.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
title: Site design updated
|
title: Site design updated
|
||||||
description: New look, simpler tech.
|
description: New look, simpler tech.
|
||||||
tags:
|
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/).
|
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/).
|
||||||
|
|
|
@ -4,8 +4,7 @@ slug: thinking-machines
|
||||||
description: "The computers will start thinking, and people will stop."
|
description: "The computers will start thinking, and people will stop."
|
||||||
cover: "/2025-04-24--computers-will-start-thinking.jpg"
|
cover: "/2025-04-24--computers-will-start-thinking.jpg"
|
||||||
tags:
|
tags:
|
||||||
- opinions
|
- zeitgeist
|
||||||
- trends
|
|
||||||
- ai
|
- ai
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ description: Some dev tools I recommend.
|
||||||
tags:
|
tags:
|
||||||
- technical
|
- technical
|
||||||
- software
|
- 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.
|
Everyone has different tools that they find especially effective. Here are some I have found with a few words about why I like them.
|
||||||
|
|
|
@ -6,6 +6,7 @@ export default {
|
||||||
eleventyComputed: {
|
eleventyComputed: {
|
||||||
date: "{{ page.date }}",
|
date: "{{ page.date }}",
|
||||||
slug: "{{ page.slug }}",
|
slug: "{{ page.slug }}",
|
||||||
|
keywords: (data) => data.tags.join(", "),
|
||||||
permalink: (data) => {
|
permalink: (data) => {
|
||||||
if (process.env.ELEVENTY_RUN_MODE !== "build") return data.permalink;
|
if (process.env.ELEVENTY_RUN_MODE !== "build") return data.permalink;
|
||||||
else return data.draft ? false : data.permalink;
|
else return data.draft ? false : data.permalink;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue