Apologise profusely for spam

This commit is contained in:
Lewis Dale 2023-12-30 16:04:41 +00:00
parent b10dfae5dd
commit 23f59d9576
2 changed files with 11 additions and 5 deletions

View File

@ -0,0 +1,10 @@
---
title: Sorry for the spam
date: 2023-12-30
---
If you're subscribed to any of my site feeds, you might have noticed that suddenly you've been flooded with every post I've ever written.
My bad - I'm removing Wordpress from my setup, which means using Eleventy-generated feeds once again. I've setup Nginx rules so that the existing URLs will all work, but because the Wordpress feeds use the internal wordpress IDs instead of post urls, most feed readers will parse them as brand new posts.
So... sorry about that!

View File

@ -1,9 +1,5 @@
module.exports = {
tags: ['posts'],
layout: 'post.njk',
eleventyComputed: {
permalink: data => {
return `/post/${data.slug}/`;
},
}
permalink: "/post/{{ data.slug if data.slug else title | slugify }} "
}