lewisdale.dev/src/blog/tag.html
Lewis Dale fdece234f3
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m22s
Fix broken feed links on blog
2024-09-26 20:48:19 +01:00

28 lines
648 B
HTML

---json
{
"title": "Tagged posts",
"layout": "base.njk",
"pagination": {
"data": "collections.tags",
"size": 1,
"alias": "tag"
},
"eleventyComputed": {
"permalink": "/post/tag/{{ tag }}/",
"feeds": {
"rss": "{{ page.url }}rss.xml",
"atom": "{{ page.url }}atom.xml",
"json": "{{ page.url }}feed.json"
}
},
"eleventyImport": {
"collections": ["tags", "posts"]
}
}
---
{% extends "components/blog.njk" %}
{% set posts = collections.tagPosts[tag] %}
{% set title = "Posts tagged with “" ~ tag ~ "”" %}
{{ content | safe }}