diff --git a/public/images/logo.jpg b/src/assets/images/logo.jpg similarity index 100% rename from public/images/logo.jpg rename to src/assets/images/logo.jpg diff --git a/public/images/working-with-non-numbered-sections-in-latex.png b/src/assets/images/working-with-non-numbered-sections-in-latex.png similarity index 100% rename from public/images/working-with-non-numbered-sections-in-latex.png rename to src/assets/images/working-with-non-numbered-sections-in-latex.png diff --git a/src/components/footer.astro b/src/components/footer.astro index 50580b9..b157a35 100644 --- a/src/components/footer.astro +++ b/src/components/footer.astro @@ -1,16 +1,16 @@ --- import { getLangFromUrl, useTranslations } from '../i18n/utils'; -import { languages } from "../i18n/languages"; + const lang = getLangFromUrl(Astro.url); const t = useTranslations(lang); -import LanguageSelector from "./language-select" + const currentPath = Astro.url.pathname.replace(/^\/[a-z]{2}(-[a-z]{2})?\//, ''); ---