diff --git a/README.md b/README.md index 5361a13..9d7869a 100644 --- a/README.md +++ b/README.md @@ -215,3 +215,13 @@ See [MDX troubleshooting](https://mdxjs.com/docs/troubleshooting-mdx/) + +## Localisation + +https://docs.astro.build/en/guides/internationalization/ + +https://docs.astro.build/en/recipes/i18n/#hide-default-language-in-the-url + +# Plausible + +https://plausible.io/blog/utm-tracking-tags diff --git a/astro.config.mjs b/astro.config.mjs index 94814b9..916a801 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -17,6 +17,13 @@ export default defineConfig({ wrap: true } }, + i18n: { + defaultLocale: "en", + locales: ["de", "en"], + routing: { + prefixDefaultLocale: false + } + }, integrations: [mdx({ syntaxHighlight: 'shiki', shikiConfig: { diff --git a/src/assets/images/azure-service-connection.png b/src/assets/images/azure-service-connection.png new file mode 100644 index 0000000..45bef61 Binary files /dev/null and b/src/assets/images/azure-service-connection.png differ diff --git a/src/assets/images/blogimages/GitHub Actions.png b/src/assets/images/blogimages/GitHub Actions.png new file mode 100644 index 0000000..85dcb8e Binary files /dev/null and b/src/assets/images/blogimages/GitHub Actions.png differ diff --git a/src/assets/images/blogimages/Streamlit-logo-primary-colormark-darktext.png b/src/assets/images/blogimages/Streamlit-logo-primary-colormark-darktext.png new file mode 100644 index 0000000..209ceba Binary files /dev/null and b/src/assets/images/blogimages/Streamlit-logo-primary-colormark-darktext.png differ diff --git a/src/assets/images/blogimages/docker.png b/src/assets/images/blogimages/docker.png new file mode 100644 index 0000000..717183d Binary files /dev/null and b/src/assets/images/blogimages/docker.png differ diff --git a/src/assets/images/blogimages/docker.webp b/src/assets/images/blogimages/docker.webp new file mode 100644 index 0000000..145d251 Binary files /dev/null and b/src/assets/images/blogimages/docker.webp differ diff --git a/src/assets/images/blogimages/entraid.png b/src/assets/images/blogimages/entraid.png new file mode 100644 index 0000000..60201f8 Binary files /dev/null and b/src/assets/images/blogimages/entraid.png differ diff --git a/src/assets/images/blogimages/queesdocker1-768x432-1.webp b/src/assets/images/blogimages/queesdocker1-768x432-1.webp new file mode 100644 index 0000000..145d251 Binary files /dev/null and b/src/assets/images/blogimages/queesdocker1-768x432-1.webp differ diff --git a/src/assets/images/blogimages/terraform.png b/src/assets/images/blogimages/terraform.png new file mode 100644 index 0000000..dc05e7b Binary files /dev/null and b/src/assets/images/blogimages/terraform.png differ diff --git a/src/components/Header.astro b/src/components/Header.astro index 32b2c30..adcbb83 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -27,6 +27,19 @@ const SOCIALNETWORKS = [ icon: TwitterIcon } ] + +// Language options +const LANGUAGES = [ + { code: 'en', name: 'English' }, + { code: 'es', name: 'Español' } +] + +function changeLanguage(event) { + const selectedLanguage = event.target.value + const currentPath = window.location.pathname + const newPath = `/${selectedLanguage}${currentPath}` + window.location.href = newPath +} ---
@@ -67,6 +80,13 @@ const SOCIALNETWORKS = [ +