diff options
Diffstat (limited to 'src/partials')
| -rw-r--r-- | src/partials/Footer.astro | 26 | ||||
| -rw-r--r-- | src/partials/Header.astro | 17 |
2 files changed, 27 insertions, 16 deletions
diff --git a/src/partials/Footer.astro b/src/partials/Footer.astro index dae78b7..d5ca5cb 100644 --- a/src/partials/Footer.astro +++ b/src/partials/Footer.astro @@ -1,19 +1,23 @@ +--- +import { useTranslations } from "../i18n" + +const t = useTranslations(Astro.currentLocale); +--- + <footer> <p> - Copyright © 2023-{new Date().getFullYear()} Ariel Costas Guerrero. Todos - los derechos reservados. + Copyright © 2023-{new Date().getFullYear()} Ariel Costas Guerrero. {t.footer.copyright} </p> + <p> - Contenido cedido bajo licencia <a - href="https://creativecommons.org/licenses/by-sa/4.0/deed.es" - >CC BY-SA 4.0</a - > salvo que se indique lo contrario. El código fuente de este sitio está - disponible en <a href="https://github.com/arielcostas/costasdev" - >GitHub</a - >, bajo los términos de la <a + {t.footer.contentLicencedUnder} <a + href={`https://creativecommons.org/licenses/by-sa/4.0/deed.${Astro.currentLocale}`} + >CC BY-SA 4.0</a>. + + {t.footer.sourceCodeAvailableOn} <a href="https://github.com/arielcostas/costasdev">GitHub</a> + {t.footer.andIsLicencedUnder} <a href="https://joinup.ec.europa.eu/collection/eupl/eupl-text-11-12" - >Licencia Pública de la Unión Europea</a - >. + >{t.footer.eupl} 1.2</a </p> </footer> diff --git a/src/partials/Header.astro b/src/partials/Header.astro index 35a39ae..bd8c9d6 100644 --- a/src/partials/Header.astro +++ b/src/partials/Header.astro @@ -1,9 +1,16 @@ +--- +import { getRelativeLocaleUrl } from "astro:i18n"; +import { useTranslations } from "../i18n" + +const t = useTranslations(Astro.currentLocale); +--- + <header> - <a href="/">Inicio</a> - <a href="/trajectory">Trayectoria</a> - <a href="/portfolio">Portfolio</a> - <a href="/blog">Blog</a> - <a href="/contact">Contacto</a> + <a href={getRelativeLocaleUrl(Astro.currentLocale!, "")}>{t.header.home}</a> + <a href={getRelativeLocaleUrl(Astro.currentLocale!, "trajectory")}>{t.header.trajectory}</a> + <a href={getRelativeLocaleUrl(Astro.currentLocale!, "portfolio")}>{t.header.portfolio}</a> + <a href={getRelativeLocaleUrl("es", "blog")}>{t.header.blog}</a> + <a href={getRelativeLocaleUrl(Astro.currentLocale!, "contact")}>{t.header.contact}</a> </header> <style lang="scss"> |
