Override RSS feed for tags

This commit is contained in:
Lewis Dale 2023-10-18 13:59:56 +01:00
parent 53707bb085
commit 2bb3574468
2 changed files with 10 additions and 3 deletions

View File

@ -21,9 +21,15 @@
<link rel="stylesheet" type="text/css" href="/assets/css/prism.min.css" />
{% endif %}
<link rel="stylesheet" type="text/css" href="/assets/css/styles.css" />
<link rel="alternate" type="application/rss+xml" title="LewisDale.Dev" href="/feed/" />
<link rel="alternate" type="application/atom+xml" title="LewisDale.Dev Atom Feed" href="/feed/atom" />
<link rel="alternate" type="application/json" title="LewisDale.Dev JSON Feed" href="/feed/json" />
{% if feed %}
<link rel="alternate" type="application/rss+xml" title="LewisDale.Dev" href="{{ feed }}" />
<link rel="alternate" type="application/atom+xml" title="LewisDale.Dev Atom Feed" href="{{ feed }}atom" />
<link rel="alternate" type="application/json" title="LewisDale.Dev JSON Feed" href="{{ feed }}json" />
{% else %}
<link rel="alternate" type="application/rss+xml" title="LewisDale.Dev" href="/feed/" />
<link rel="alternate" type="application/atom+xml" title="LewisDale.Dev Atom Feed" href="/feed/atom" />
<link rel="alternate" type="application/json" title="LewisDale.Dev JSON Feed" href="/feed/json" />
{% endif %}
<link rel="me" href="proven.lol/f730ca" />
<link rel="me" href="https://social.lewisdale.dev/@lewis" />
<link rel="me" href="https://github.com/LewisDaleUK" />

View File

@ -7,6 +7,7 @@ pagination:
alias: tag
eleventyComputed:
permalink: "/post/tag/{{ tag.slug }}/"
feed: "/post/tag/{{ tag.slug }}/feed/"
---
<main class="wrapper-md stack-lg">