add rss links to thoughts/poetry page, fix referenced links in them
This commit is contained in:
parent
39d7f3c943
commit
5e7fc8b87d
|
@ -71,8 +71,27 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="container mx-auto flex flex-col items-center">
|
<div class="container mx-auto flex flex-col items-center">
|
||||||
<div class="prose mb-4">
|
<div class="prose flex flex-row py-6 items-center">
|
||||||
<h1 class="py-6">{title}</h1>
|
<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>
|
</div>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -25,8 +25,8 @@ const render = (posts: Post[]) => `<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<channel>
|
<channel>
|
||||||
<title>${siteTitle}</title>
|
<title>${siteTitle}</title>
|
||||||
<description>${siteDescription}</description>
|
<description>${siteDescription}</description>
|
||||||
<link>${siteURL}</link>
|
<link>${siteURL}/poetry</link>
|
||||||
<atom:link href="${siteURL}/rss.xml" rel="self" type="application/rss+xml"/>
|
<atom:link href="${siteURL}/poetry/rss" rel="self" type="application/rss+xml"/>
|
||||||
${posts
|
${posts
|
||||||
.map(
|
.map(
|
||||||
(post) => `<item>
|
(post) => `<item>
|
||||||
|
|
|
@ -26,7 +26,7 @@ const render = (posts: Post[]) => `<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<title>${siteTitle}</title>
|
<title>${siteTitle}</title>
|
||||||
<description>${siteDescription}</description>
|
<description>${siteDescription}</description>
|
||||||
<link>${siteURL}</link>
|
<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
|
${posts
|
||||||
.map(
|
.map(
|
||||||
(post) => `<item>
|
(post) => `<item>
|
||||||
|
|
|
@ -25,8 +25,8 @@ const render = (posts: Post[]) => `<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<channel>
|
<channel>
|
||||||
<title>${siteTitle}</title>
|
<title>${siteTitle}</title>
|
||||||
<description>${siteDescription}</description>
|
<description>${siteDescription}</description>
|
||||||
<link>${siteURL}</link>
|
<link>${siteURL}/thoughts</link>
|
||||||
<atom:link href="${siteURL}/rss.xml" rel="self" type="application/rss+xml"/>
|
<atom:link href="${siteURL}/thoughts/rss" rel="self" type="application/rss+xml"/>
|
||||||
${posts
|
${posts
|
||||||
.map(
|
.map(
|
||||||
(post) => `<item>
|
(post) => `<item>
|
||||||
|
|
Loading…
Reference in New Issue