add rss links to thoughts/poetry page, fix referenced links in them

This commit is contained in:
silentsilas 2025-01-23 22:31:40 -05:00
parent 39d7f3c943
commit 5e7fc8b87d
Signed by: silentsilas
GPG Key ID: 113DFB380F724A81
4 changed files with 26 additions and 7 deletions

View File

@ -71,8 +71,27 @@
</script>
<div class="container mx-auto flex flex-col items-center">
<div class="prose mb-4">
<h1 class="py-6">{title}</h1>
<div class="prose flex flex-row py-6 items-center">
<h1 class="mb-0">{title}</h1>
<a
aria-label="Link to poetry RSS feed."
class="link-primary mt-2 ml-2"
href={`${baseUrl}/rss`}
rel="external"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="currentColor"
class="size-5"
>
<path
fill-rule="evenodd"
d="M3.75 4.5a.75.75 0 0 1 .75-.75h.75c8.284 0 15 6.716 15 15v.75a.75.75 0 0 1-.75.75h-.75a.75.75 0 0 1-.75-.75v-.75C18 11.708 12.292 6 5.25 6H4.5a.75.75 0 0 1-.75-.75V4.5Zm0 6.75a.75.75 0 0 1 .75-.75h.75a8.25 8.25 0 0 1 8.25 8.25v.75a.75.75 0 0 1-.75.75H12a.75.75 0 0 1-.75-.75v-.75a6 6 0 0 0-6-6H4.5a.75.75 0 0 1-.75-.75v-.75Zm0 7.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"
clip-rule="evenodd"
/>
</svg>
</a>
</div>
<ul>

View File

@ -25,8 +25,8 @@ const render = (posts: Post[]) => `<?xml version="1.0" encoding="UTF-8" ?>
<channel>
<title>${siteTitle}</title>
<description>${siteDescription}</description>
<link>${siteURL}</link>
<atom:link href="${siteURL}/rss.xml" rel="self" type="application/rss+xml"/>
<link>${siteURL}/poetry</link>
<atom:link href="${siteURL}/poetry/rss" rel="self" type="application/rss+xml"/>
${posts
.map(
(post) => `<item>

View File

@ -26,7 +26,7 @@ const render = (posts: Post[]) => `<?xml version="1.0" encoding="UTF-8" ?>
<title>${siteTitle}</title>
<description>${siteDescription}</description>
<link>${siteURL}</link>
<atom:link href="${siteURL}/rss.xml" rel="self" type="application/rss+xml"/>
<atom:link href="${siteURL}/rss" rel="self" type="application/rss+xml"/>
${posts
.map(
(post) => `<item>

View File

@ -25,8 +25,8 @@ const render = (posts: Post[]) => `<?xml version="1.0" encoding="UTF-8" ?>
<channel>
<title>${siteTitle}</title>
<description>${siteDescription}</description>
<link>${siteURL}</link>
<atom:link href="${siteURL}/rss.xml" rel="self" type="application/rss+xml"/>
<link>${siteURL}/thoughts</link>
<atom:link href="${siteURL}/thoughts/rss" rel="self" type="application/rss+xml"/>
${posts
.map(
(post) => `<item>