From b0eac3d3548c7b9065fe0360dc48e8df6f1f80e2 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> Date: Fri, 14 Mar 2025 23:45:58 +0100 Subject: Add multilingual support to layout and footer; include alternate hreflang links --- src/layouts/Layout.astro | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/layouts/Layout.astro') diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index eda1716..c8d3302 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -3,6 +3,8 @@ import "@fontsource/beiruti"; import "@fontsource-variable/sen"; import Header from "../partials/Header.astro"; import Footer from "../partials/Footer.astro"; +import { getAbsoluteLocaleUrl } from "astro:i18n"; +import { getUrlWithoutLocale } from '../i18n'; interface Props { title: string; @@ -10,6 +12,7 @@ interface Props { } const { title, description } = Astro.props; +const urlWithoutLocale = getUrlWithoutLocale(Astro.url.pathname); --- @@ -20,6 +23,10 @@ const { title, description } = Astro.props; + + + + -- cgit v1.3