]> git.otsuka.systems Git - cotsuka.github.io/commitdiff
use relative feed url
authorCameron Otsuka <cameron@otsuka.haus>
Fri, 21 Nov 2025 01:22:13 +0000 (17:22 -0800)
committerCameron Otsuka <cameron@otsuka.haus>
Fri, 21 Nov 2025 01:22:13 +0000 (17:22 -0800)
src/components/footer.astro

index 69804091fd6c224d5230681b96e09d0ee12f2187..4d71806c4cdf59b638af3e77ec778620d99bfa6d 100644 (file)
@@ -2,7 +2,6 @@
 import { siteAuthor, socials } from '@utils/globals.ts';
 import { Icon } from 'astro-icon/components';
 
-const feedURL = new URL("feed.xml", Astro.site);
 const currentYear = new Date().getFullYear();
 ---
 <footer>
@@ -15,7 +14,7 @@ const currentYear = new Date().getFullYear();
         </menu>
     </address>
     <p>
-        &copy; {currentYear} {siteAuthor.name}. <a href={feedURL}><Icon name="mdi:rss" /></a>
+        &copy; {currentYear} {siteAuthor.name}. <a href="/feed.xml"><Icon name="mdi:rss" /></a>
     </p>
     <p>
         All views my own. Not financial advice. Links, citations, and other references are not endorsements. Content is licensed under <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.