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
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m24s
This commit is contained in:
parent
eab197109c
commit
d332e34874
@ -15,7 +15,7 @@
|
||||
<p class="e-content p-summary">{{ item | excerpt }}</p>
|
||||
<ul role="list" class="tags">
|
||||
{% 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 %}
|
||||
</ul>
|
||||
<a href="{{ item.url }}" class="inline-block">Read more</a>
|
||||
|
@ -15,7 +15,7 @@ includePrism: true
|
||||
<h2>Tags:</h2>
|
||||
<ul role="list">
|
||||
{% 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 %}
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "A new blog"
|
||||
date: 2021-12-17T00:00:00
|
||||
slug: a-new-blog
|
||||
|
||||
tags:
|
||||
- eleventy
|
||||
---
|
||||
It’s been a long time since I’ve 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?
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Building a CMS for Eleventy"
|
||||
date: 2022-10-07T00:00:00
|
||||
slug: building-a-cms-for-eleventy
|
||||
|
||||
tags:
|
||||
- eleventy
|
||||
---
|
||||
Three days ago, I tweeted this:
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Moving my reading list out of JSON"
|
||||
date: 2022-10-05T00:00:00
|
||||
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.
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Adding comments to my blog"
|
||||
date: 2022-11-05T00:00:00
|
||||
slug: adding-comments-to-my-blog
|
||||
|
||||
tags:
|
||||
- eleventy
|
||||
---
|
||||
Yet more Eleventy-related things!
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Adding statically-generated Open Graph images"
|
||||
date: 2022-11-02T00:00:00
|
||||
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.
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Okay now I actually have Open Graph images"
|
||||
date: 2022-11-04T00:00:00
|
||||
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!
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "You can be friends with my blog"
|
||||
date: 2022-11-08T00:00:00
|
||||
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.
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Choosing a CMS to use with Eleventy"
|
||||
date: 2022-12-29T11:37:59
|
||||
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:
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Get your Eleventy site onto the Fediverse"
|
||||
date: 2022-12-12T00:00:00
|
||||
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.
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Managing my reading list with BookWyrm"
|
||||
date: 2022-12-16T00:00:00
|
||||
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).
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Microblogging with Eleventy"
|
||||
date: 2022-12-30T21:24:54
|
||||
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).
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Adding categories to Eleventy"
|
||||
date: 2022-05-28T00:00:00
|
||||
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.
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Managing my reading list"
|
||||
date: 2022-06-12T00:00:00
|
||||
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:
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Why I don’t write React anymore"
|
||||
date: 2022-06-23T00:00:00
|
||||
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.
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Note-taking: 1 week in"
|
||||
date: 2023-01-17T17:04:46
|
||||
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.
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Note-taking and retaining information"
|
||||
date: 2023-01-10T09:25:47
|
||||
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.
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "TIL: Adding a subreddit RSS feed"
|
||||
date: 2023-01-15T10:49:23
|
||||
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.
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "TIL: Adding text borders with CSS"
|
||||
date: 2023-01-12T19:25:42
|
||||
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:
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: "TIL: Forwarding ports using SSH and proxying with Apache"
|
||||
date: 2023-01-16T08:33:18
|
||||
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).
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Using Obsidian for meal planning"
|
||||
date: 2023-11-30T21:26:43
|
||||
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.
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Using WebC for progressively-enhanced UI elements"
|
||||
date: 2023-02-23T10:17:01
|
||||
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.
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Using WordPress as a Markdown editor"
|
||||
date: 2023-02-18T21:56:35
|
||||
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.
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
title: "Bringing my omg.lol Now page into Eleventy"
|
||||
date: 2023-03-07T09:52:55
|
||||
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.
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: Detecting Markdown titles with Eleventy
|
||||
tags:
|
||||
- Eleventy
|
||||
- Obsidian
|
||||
- eleventy
|
||||
- obsidian
|
||||
date: 2024-01-10T08:44:57Z
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
---
|
||||
title: Simplifying things for 2024
|
||||
tags: meta
|
||||
tags:
|
||||
- meta
|
||||
- eleventy
|
||||
date: 2024-01-01T13:46:35Z
|
||||
---
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "TIL: Why Date.parse gives unexpected results for GMT"
|
||||
tags:
|
||||
- Javascript
|
||||
- javascript
|
||||
- TIL
|
||||
date: 2024-02-12T14:53:51Z
|
||||
---
|
||||
|
@ -8,13 +8,13 @@
|
||||
"alias": "tag"
|
||||
},
|
||||
"eleventyComputed": {
|
||||
"permalink": "/post/tag/{{ tag }}/",
|
||||
"permalink": "/post/tag/{{ tag | slugify }}/",
|
||||
"feeds": {
|
||||
"rss": "{{ page.url }}rss.xml",
|
||||
"atom": "{{ page.url }}atom.xml",
|
||||
"json": "{{ page.url }}feed.json"
|
||||
}
|
||||
},
|
||||
},
|
||||
"eleventyImport": {
|
||||
"collections": ["tags", "posts"]
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ pagination:
|
||||
size: 1
|
||||
alias: tag
|
||||
eleventyComputed:
|
||||
permalink: "/post/tag/{{ tag }}/atom.xml"
|
||||
permalink: "/post/tag/{{ tag | slugify }}/atom.xml"
|
||||
eleventyExcludeFromCollections: true
|
||||
eleventyImport:
|
||||
collections: ["posts", "tags"]
|
||||
|
@ -4,7 +4,7 @@ pagination:
|
||||
size: 1
|
||||
alias: tag
|
||||
eleventyComputed:
|
||||
permalink: "/post/tag/{{ tag }}/feed.json"
|
||||
permalink: "/post/tag/{{ tag | slugify }}/feed.json"
|
||||
eleventyExcludeFromCollections: true
|
||||
eleventyImport:
|
||||
collections: ["posts", "tags"]
|
||||
|
@ -4,7 +4,7 @@ pagination:
|
||||
size: 1
|
||||
alias: tag
|
||||
eleventyComputed:
|
||||
permalink: "/post/tag/{{ tag }}/rss.xml"
|
||||
permalink: "/post/tag/{{ tag | slugify }}/rss.xml"
|
||||
eleventyExcludeFromCollections: true
|
||||
eleventyImport:
|
||||
collections: ["posts", "tags"]
|
||||
|
Loading…
Reference in New Issue
Block a user