privacy-policy

This commit is contained in:
tequ
2026-06-16 14:03:59 +09:00
parent 2fbf661780
commit 3d89e8e2c5
2 changed files with 8 additions and 6 deletions

View File

@@ -1,5 +1,4 @@
---
layout: ../layouts/PageLayout.astro
title: Privacy Policy
description: Privacy Policy for xahau.network
---

View File

@@ -1,13 +1,16 @@
---
import { getEntry, render } from 'astro:content'
import { nonDefaultLocales } from '../../i18n/locales'
import { defaultLocale, locales } from '../../i18n/locales'
import PageLayout from '../../layouts/PageLayout.astro'
export function getStaticPaths() {
return nonDefaultLocales.map((lang) => ({
params: { lang: lang.toLowerCase() },
props: { locale: lang },
}))
return locales.map((locale) => {
const lang = locale === defaultLocale ? undefined : locale.toLowerCase()
return {
params: { lang },
props: { locale },
}
})
}
const { locale } = Astro.props