make tag urls all lowercase, instead of having multiple urls for the same tag
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m24s

This commit is contained in:
Lewis Dale 2024-10-12 11:19:33 +01:00
parent eab197109c
commit d332e34874
32 changed files with 134 additions and 112 deletions

View File

@ -15,7 +15,7 @@
<p class="e-content p-summary">{{ item | excerpt }}</p> <p class="e-content p-summary">{{ item | excerpt }}</p>
<ul role="list" class="tags"> <ul role="list" class="tags">
{% for t in item.data.tags | except("posts") | except("draft") %} {% for t in item.data.tags | except("posts") | except("draft") %}
<li><a href="/post/tag/{{ t }}" rel="tag">#{{ t }}</a></li> <li><a href="/post/tag/{{ t | slugify }}" rel="tag">#{{ t }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
<a href="{{ item.url }}" class="inline-block">Read more</a> <a href="{{ item.url }}" class="inline-block">Read more</a>

View File

@ -15,7 +15,7 @@ includePrism: true
<h2>Tags:</h2> <h2>Tags:</h2>
<ul role="list"> <ul role="list">
{% for tag in filteredTags %} {% for tag in filteredTags %}
<li><a class="p-category" href="/post/tag/{{ tag }}" rel="tag">#{{ tag }}</a></li> <li><a class="p-category" href="/post/tag/{{ tag | slugify }}" rel="tag">#{{ tag }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
</section> </section>

View File

@ -2,7 +2,8 @@
title: "A new blog" title: "A new blog"
date: 2021-12-17T00:00:00 date: 2021-12-17T00:00:00
slug: a-new-blog slug: a-new-blog
tags:
- eleventy
--- ---
Its been a long time since Ive had an actively-maintained personal website/blog, but I got a spurt of inspiration after seeing a few other recently-revamped blogs. What better way to celebrate the end of the year than with… a blog? Its been a long time since Ive had an actively-maintained personal website/blog, but I got a spurt of inspiration after seeing a few other recently-revamped blogs. What better way to celebrate the end of the year than with… a blog?

View File

@ -2,7 +2,8 @@
title: "Building a CMS for Eleventy" title: "Building a CMS for Eleventy"
date: 2022-10-07T00:00:00 date: 2022-10-07T00:00:00
slug: building-a-cms-for-eleventy slug: building-a-cms-for-eleventy
tags:
- eleventy
--- ---
Three days ago, I tweeted this: Three days ago, I tweeted this:

View File

@ -2,7 +2,8 @@
title: "Moving my reading list out of JSON" title: "Moving my reading list out of JSON"
date: 2022-10-05T00:00:00 date: 2022-10-05T00:00:00
slug: moving-my-reading-list-out-of-json slug: moving-my-reading-list-out-of-json
tags:
- eleventy
--- ---
I blogged about [hosting a reading list on this blog](https://lewisdale.dev/post/managing-my-reading-list/) a little while ago. At the time, I decided that storing the books as JSON would make sense - and it did, at the time. But as the list has grown, albeit not exponentially, it started to get a bit messy. I blogged about [hosting a reading list on this blog](https://lewisdale.dev/post/managing-my-reading-list/) a little while ago. At the time, I decided that storing the books as JSON would make sense - and it did, at the time. But as the list has grown, albeit not exponentially, it started to get a bit messy.

View File

@ -2,7 +2,8 @@
title: "Adding comments to my blog" title: "Adding comments to my blog"
date: 2022-11-05T00:00:00 date: 2022-11-05T00:00:00
slug: adding-comments-to-my-blog slug: adding-comments-to-my-blog
tags:
- eleventy
--- ---
Yet more Eleventy-related things! Yet more Eleventy-related things!

View File

@ -2,7 +2,8 @@
title: "Adding statically-generated Open Graph images" title: "Adding statically-generated Open Graph images"
date: 2022-11-02T00:00:00 date: 2022-11-02T00:00:00
slug: adding-statically-generated-open-graph-images slug: adding-statically-generated-open-graph-images
tags:
- eleventy
--- ---
Open Graph images are what websites such as Twitter choose to display when showing a preview to a page. There are plenty of ways to generate these dynamically - like using Netlify Edge Functions, for one. Open Graph images are what websites such as Twitter choose to display when showing a preview to a page. There are plenty of ways to generate these dynamically - like using Netlify Edge Functions, for one.

View File

@ -2,7 +2,8 @@
title: "Okay now I actually have Open Graph images" title: "Okay now I actually have Open Graph images"
date: 2022-11-04T00:00:00 date: 2022-11-04T00:00:00
slug: okay-now-i-actually-have-open-graph-images slug: okay-now-i-actually-have-open-graph-images
tags:
- eleventy
--- ---
Two days ago, I wrote that I had [added statically-generated Open Graph images](https://lewisdale.dev/post/adding-statically-generated-open-graph-images/), and technically this was the truth. With one minor issue: they didn't work on Twitter! Two days ago, I wrote that I had [added statically-generated Open Graph images](https://lewisdale.dev/post/adding-statically-generated-open-graph-images/), and technically this was the truth. With one minor issue: they didn't work on Twitter!

View File

@ -2,7 +2,8 @@
title: "You can be friends with my blog" title: "You can be friends with my blog"
date: 2022-11-08T00:00:00 date: 2022-11-08T00:00:00
slug: you-can-be-friends-with-my-blog slug: you-can-be-friends-with-my-blog
tags:
- eleventy
--- ---
Like almost everyone else it seems, I've [opened a Mastodon account](https://dapchat.online/@lewisdaleuk). When reading about the standard that Mastodon is built on, [ActivityPub](https://www.w3.org/TR/activitypub/), I had an idea: why not try and implement some of it with Netlify functions. Like almost everyone else it seems, I've [opened a Mastodon account](https://dapchat.online/@lewisdaleuk). When reading about the standard that Mastodon is built on, [ActivityPub](https://www.w3.org/TR/activitypub/), I had an idea: why not try and implement some of it with Netlify functions.

View File

@ -2,7 +2,8 @@
title: "Choosing a CMS to use with Eleventy" title: "Choosing a CMS to use with Eleventy"
date: 2022-12-29T11:37:59 date: 2022-12-29T11:37:59
slug: choosing-a-cms-to-use-with-eleventy slug: choosing-a-cms-to-use-with-eleventy
tags:
- eleventy
--- ---
After my last post, I decided that I would in fact start using a CMS, so I took a look at some of the options available to me. My criteria for choosing a CMS were: After my last post, I decided that I would in fact start using a CMS, so I took a look at some of the options available to me. My criteria for choosing a CMS were:

View File

@ -2,7 +2,8 @@
title: "Get your Eleventy site onto the Fediverse" title: "Get your Eleventy site onto the Fediverse"
date: 2022-12-12T00:00:00 date: 2022-12-12T00:00:00
slug: get-your-eleventy-site-onto-the-fediverse slug: get-your-eleventy-site-onto-the-fediverse
tags:
- eleventy
--- ---
A little while ago, [I brought my blog to the Fediverse](https://lewisdale.dev/post/you-can-be-friends-with-my-blog). This was a fun experiment which resulted in me turning my Netlify-hosted blog into an instance. A little while ago, [I brought my blog to the Fediverse](https://lewisdale.dev/post/you-can-be-friends-with-my-blog). This was a fun experiment which resulted in me turning my Netlify-hosted blog into an instance.

View File

@ -2,7 +2,8 @@
title: "Managing my reading list with BookWyrm" title: "Managing my reading list with BookWyrm"
date: 2022-12-16T00:00:00 date: 2022-12-16T00:00:00
slug: managing-my-reading-list-with-bookwyrm slug: managing-my-reading-list-with-bookwyrm
tags:
- eleventy
--- ---
A little while ago [I wrote about managing my reading list using a JSON file](/post/managing-my-reading-list). Then I decided that was too _easy_, so I [starting using an SQLite database instead](/post/moving-my-reading-list-out-of-json). A little while ago [I wrote about managing my reading list using a JSON file](/post/managing-my-reading-list). Then I decided that was too _easy_, so I [starting using an SQLite database instead](/post/moving-my-reading-list-out-of-json).

View File

@ -2,7 +2,8 @@
title: "Microblogging with Eleventy" title: "Microblogging with Eleventy"
date: 2022-12-30T21:24:54 date: 2022-12-30T21:24:54
slug: microblogging-with-eleventy slug: microblogging-with-eleventy
tags:
- eleventy
--- ---
Given the drive to move all of my content into one place and syndicate it to other networks, I decided that I'd also try out doing microblog-style posts with Eleventy. Before I could do that, I needed to add a CMS (there's no way I'm manually adding Markdown files everytime I want to post a status). Given the drive to move all of my content into one place and syndicate it to other networks, I decided that I'd also try out doing microblog-style posts with Eleventy. Before I could do that, I needed to add a CMS (there's no way I'm manually adding Markdown files everytime I want to post a status).

View File

@ -2,7 +2,8 @@
title: "Adding categories to Eleventy" title: "Adding categories to Eleventy"
date: 2022-05-28T00:00:00 date: 2022-05-28T00:00:00
slug: adding-categories-to-eleventy slug: adding-categories-to-eleventy
tags:
- eleventy
--- ---
I've decided to put a bit more love into this blog, I've neglected it since the new year. As part of that, I wanted to make a few more changes - namely, I wanted some better navigation to allow me to write different types of content. So, I've added a little category list to the site to allow people to search by different tags. I've decided to put a bit more love into this blog, I've neglected it since the new year. As part of that, I wanted to make a few more changes - namely, I wanted some better navigation to allow me to write different types of content. So, I've added a little category list to the site to allow people to search by different tags.

View File

@ -2,7 +2,8 @@
title: "Managing my reading list" title: "Managing my reading list"
date: 2022-06-12T00:00:00 date: 2022-06-12T00:00:00
slug: managing-my-reading-list slug: managing-my-reading-list
tags:
- eleventy
--- ---
A little while ago I was toying with building a lightweight web app that would make it easy to manage and share reading lists. I never got around to making it, but instead I built a very-MVP version by adding my [reading list](/reading-list) to this website. It was a fairly simple construction, I simply added a file called `reading-list.11tydata.json` to my source directory, that looked like this: A little while ago I was toying with building a lightweight web app that would make it easy to manage and share reading lists. I never got around to making it, but instead I built a very-MVP version by adding my [reading list](/reading-list) to this website. It was a fairly simple construction, I simply added a file called `reading-list.11tydata.json` to my source directory, that looked like this:

View File

@ -2,7 +2,8 @@
title: "Why I don&#8217;t write React anymore" title: "Why I don&#8217;t write React anymore"
date: 2022-06-23T00:00:00 date: 2022-06-23T00:00:00
slug: why-i-dont-write-react-anymore slug: why-i-dont-write-react-anymore
tags:
- eleventy
--- ---
Earlier this year I made the decision to stop working in React. I'd just come out of a project using a modern JS tech stack that used Next.js, and I couldn't get over how _complex_ the whole thing had become, and how little I enjoyed the work. Earlier this year I made the decision to stop working in React. I'd just come out of a project using a modern JS tech stack that used Next.js, and I couldn't get over how _complex_ the whole thing had become, and how little I enjoyed the work.

View File

@ -2,7 +2,8 @@
title: "Note-taking: 1 week in" title: "Note-taking: 1 week in"
date: 2023-01-17T17:04:46 date: 2023-01-17T17:04:46
slug: note-taking-1-week-in slug: note-taking-1-week-in
tags:
- obsidian
--- ---
A week ago I wrote about wanting to [get better at note-taking](https://lewisdale.dev/post/note-taking-and-retaining-information/). My goal was to try and use Obsidian.md to take notes. A week ago I wrote about wanting to [get better at note-taking](https://lewisdale.dev/post/note-taking-and-retaining-information/). My goal was to try and use Obsidian.md to take notes.

View File

@ -2,7 +2,8 @@
title: "Note-taking and retaining information" title: "Note-taking and retaining information"
date: 2023-01-10T09:25:47 date: 2023-01-10T09:25:47
slug: note-taking-and-retaining-information slug: note-taking-and-retaining-information
tags:
- eleventy
--- ---
One of the things I struggle with the most is note-taking: I can't do it during meetings because then I'm distracted by the writing and not, you know, participating. So I end up not doing it at all, and then I have absolutely no record of what was said and often forget things. One of the things I struggle with the most is note-taking: I can't do it during meetings because then I'm distracted by the writing and not, you know, participating. So I end up not doing it at all, and then I have absolutely no record of what was said and often forget things.

View File

@ -2,7 +2,7 @@
title: "TIL: Adding a subreddit RSS feed" title: "TIL: Adding a subreddit RSS feed"
date: 2023-01-15T10:49:23 date: 2023-01-15T10:49:23
slug: til-adding-a-subreddit-rss-feed slug: til-adding-a-subreddit-rss-feed
tags: [til] tags: [TIL]
--- ---
I like to read some story-based Subreddits, like [/r/TalesFromTechSupport](https://reddit.com/r/talesfromtechsupport), but also don't like having to go to the Reddit app (well, Apollo) specifically to read these stories because I end up missing them. I like to read some story-based Subreddits, like [/r/TalesFromTechSupport](https://reddit.com/r/talesfromtechsupport), but also don't like having to go to the Reddit app (well, Apollo) specifically to read these stories because I end up missing them.

View File

@ -2,7 +2,7 @@
title: "TIL: Adding text borders with CSS" title: "TIL: Adding text borders with CSS"
date: 2023-01-12T19:25:42 date: 2023-01-12T19:25:42
slug: til-adding-text-borders-with-css slug: til-adding-text-borders-with-css
tags: [til] tags: [TIL]
--- ---
After checking my website on mobile, I realised that I'd made a mistake, and included a pretty bad colour contrast issue on the page: After checking my website on mobile, I realised that I'd made a mistake, and included a pretty bad colour contrast issue on the page:

View File

@ -2,7 +2,7 @@
title: "TIL: Forwarding ports using SSH and proxying with Apache" title: "TIL: Forwarding ports using SSH and proxying with Apache"
date: 2023-01-16T08:33:18 date: 2023-01-16T08:33:18
slug: til-forwarding-ports-using-ssh-and-proxying-with-apache slug: til-forwarding-ports-using-ssh-and-proxying-with-apache
tags: [til] tags: [TIL]
--- ---
I have two servers: a VPS, and a small server that I primarily use on my home network. The server at home is quite a bit more powerful than my VPS, and significantly cheaper to run, so I'd like to start moving some of my hosted services to it. The problem is that I don't have a static IP, so I'd need to get dynamic DNS setup and open the right ports on my router, which is a bit tedious (and not officially supported by my ISP). I have two servers: a VPS, and a small server that I primarily use on my home network. The server at home is quite a bit more powerful than my VPS, and significantly cheaper to run, so I'd like to start moving some of my hosted services to it. The problem is that I don't have a static IP, so I'd need to get dynamic DNS setup and open the right ports on my router, which is a bit tedious (and not officially supported by my ISP).

View File

@ -2,7 +2,8 @@
title: "Using Obsidian for meal planning" title: "Using Obsidian for meal planning"
date: 2023-11-30T21:26:43 date: 2023-11-30T21:26:43
slug: using-obsidian-for-meal-planning slug: using-obsidian-for-meal-planning
tags:
- obsidian
--- ---
In my [App defaults post](https://lewisdale.dev/post/app-defaults), I mentioned I use [Obsidian](https://obsidian.md) for various tasks, one of them being meal planning, so I thought I'd share how I actually manage that. In my [App defaults post](https://lewisdale.dev/post/app-defaults), I mentioned I use [Obsidian](https://obsidian.md) for various tasks, one of them being meal planning, so I thought I'd share how I actually manage that.

View File

@ -2,7 +2,8 @@
title: "Using WebC for progressively-enhanced UI elements" title: "Using WebC for progressively-enhanced UI elements"
date: 2023-02-23T10:17:01 date: 2023-02-23T10:17:01
slug: using-webc-for-progressively-enhanced-ui-elements slug: using-webc-for-progressively-enhanced-ui-elements
tags:
- eleventy
--- ---
Now I'm back in Eleventy-land, I thought I'd give [WebC](https://github.com/11ty/webc) a go. For those unaware, it's a templating language that generates Web Components, complete with asset bundling. Now I'm back in Eleventy-land, I thought I'd give [WebC](https://github.com/11ty/webc) a go. For those unaware, it's a templating language that generates Web Components, complete with asset bundling.

View File

@ -2,7 +2,8 @@
title: "Using WordPress as a Markdown editor" title: "Using WordPress as a Markdown editor"
date: 2023-02-18T21:56:35 date: 2023-02-18T21:56:35
slug: using-wordpress-as-a-markdown-editor slug: using-wordpress-as-a-markdown-editor
tags:
- eleventy
--- ---
The eagle-eyed among you will notice that my website's had a slight refresh - and by that I mean I got bored of that ZX Spectrum theme roughly 45 seconds after publishing it. The eagle-eyed among you will notice that my website's had a slight refresh - and by that I mean I got bored of that ZX Spectrum theme roughly 45 seconds after publishing it.

View File

@ -2,7 +2,8 @@
title: "Bringing my omg.lol Now page into Eleventy" title: "Bringing my omg.lol Now page into Eleventy"
date: 2023-03-07T09:52:55 date: 2023-03-07T09:52:55
slug: bringing-my-omg-lol-now-page-into-eleventy slug: bringing-my-omg-lol-now-page-into-eleventy
tags:
- eleventy
--- ---
[Robb Knight](https://rknight.me) has [this great Javascript tool](https://omgnow.rknight.me/) for embedding your [omg.lol](https://omg.lol) /now page in another page. [Robb Knight](https://rknight.me) has [this great Javascript tool](https://omgnow.rknight.me/) for embedding your [omg.lol](https://omg.lol) /now page in another page.

View File

@ -1,8 +1,8 @@
--- ---
title: Detecting Markdown titles with Eleventy title: Detecting Markdown titles with Eleventy
tags: tags:
- Eleventy - eleventy
- Obsidian - obsidian
date: 2024-01-10T08:44:57Z date: 2024-01-10T08:44:57Z
--- ---

View File

@ -1,6 +1,8 @@
--- ---
title: Simplifying things for 2024 title: Simplifying things for 2024
tags: meta tags:
- meta
- eleventy
date: 2024-01-01T13:46:35Z date: 2024-01-01T13:46:35Z
--- ---

View File

@ -1,7 +1,7 @@
--- ---
title: "TIL: Why Date.parse gives unexpected results for GMT" title: "TIL: Why Date.parse gives unexpected results for GMT"
tags: tags:
- Javascript - javascript
- TIL - TIL
date: 2024-02-12T14:53:51Z date: 2024-02-12T14:53:51Z
--- ---

View File

@ -8,13 +8,13 @@
"alias": "tag" "alias": "tag"
}, },
"eleventyComputed": { "eleventyComputed": {
"permalink": "/post/tag/{{ tag }}/", "permalink": "/post/tag/{{ tag | slugify }}/",
"feeds": { "feeds": {
"rss": "{{ page.url }}rss.xml", "rss": "{{ page.url }}rss.xml",
"atom": "{{ page.url }}atom.xml", "atom": "{{ page.url }}atom.xml",
"json": "{{ page.url }}feed.json" "json": "{{ page.url }}feed.json"
} }
}, },
"eleventyImport": { "eleventyImport": {
"collections": ["tags", "posts"] "collections": ["tags", "posts"]
} }

View File

@ -4,7 +4,7 @@ pagination:
size: 1 size: 1
alias: tag alias: tag
eleventyComputed: eleventyComputed:
permalink: "/post/tag/{{ tag }}/atom.xml" permalink: "/post/tag/{{ tag | slugify }}/atom.xml"
eleventyExcludeFromCollections: true eleventyExcludeFromCollections: true
eleventyImport: eleventyImport:
collections: ["posts", "tags"] collections: ["posts", "tags"]

View File

@ -4,7 +4,7 @@ pagination:
size: 1 size: 1
alias: tag alias: tag
eleventyComputed: eleventyComputed:
permalink: "/post/tag/{{ tag }}/feed.json" permalink: "/post/tag/{{ tag | slugify }}/feed.json"
eleventyExcludeFromCollections: true eleventyExcludeFromCollections: true
eleventyImport: eleventyImport:
collections: ["posts", "tags"] collections: ["posts", "tags"]

View File

@ -4,7 +4,7 @@ pagination:
size: 1 size: 1
alias: tag alias: tag
eleventyComputed: eleventyComputed:
permalink: "/post/tag/{{ tag }}/rss.xml" permalink: "/post/tag/{{ tag | slugify }}/rss.xml"
eleventyExcludeFromCollections: true eleventyExcludeFromCollections: true
eleventyImport: eleventyImport:
collections: ["posts", "tags"] collections: ["posts", "tags"]