mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 10:29:21 +03:00
fix rss link in footer
This commit is contained in:
parent
80236b839a
commit
eca47d8ce3
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user