fix rss link in footer

This commit is contained in:
Sergey Yarkov 2026-02-24 23:04:43 +03:00
parent 80236b839a
commit eca47d8ce3

View File

@ -2,6 +2,10 @@
import { Icon } from "astro-icon/components"; import { Icon } from "astro-icon/components";
import TranslatedLink from "./TranslatedLink.astro"; import TranslatedLink from "./TranslatedLink.astro";
import UIString from "./UIString.astro"; import UIString from "./UIString.astro";
import { getLanguageFromURL } from "../i18n/utils";
const pageLang = getLanguageFromURL(Astro.url.pathname);
console.log(pageLang);
--- ---
<footer> <footer>
@ -13,7 +17,7 @@ import UIString from "./UIString.astro";
</i> </i>
</div> </div>
<div> <div>
<a href='/rss.xml' target='_blank'><UIString key={"footer.rssFeed"} /></a> <a href=`/${pageLang}/rss.xml` target='_blank'><UIString key={"footer.rssFeed"} /></a>
<span> <span>
<Icon name='rss' width='20' height='20' /> <Icon name='rss' width='20' height='20' />
</span> </span>