parent
5bb47caa95
commit
7e3574eebf
|
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
import { ClientRouter } from "astro:transitions";
|
||||
|
||||
import { GoogleAnalytics } from 'astro-google-analytics';
|
||||
const { title = "Centro del Reino de Paz y Justicia", description = "" } =
|
||||
Astro.props;
|
||||
|
|
@ -14,3 +16,4 @@ const { title = "Centro del Reino de Paz y Justicia", description = "" } =
|
|||
<title>{title}</title>
|
||||
<meta name="description" content={description} />
|
||||
</head>
|
||||
<ClientRouter />
|
||||
|
|
@ -4,7 +4,8 @@ import { Icon } from "astro-icon/components";
|
|||
import "dayjs/locale/es";
|
||||
import dayjs from "dayjs";
|
||||
const regionNames = new Intl.DisplayNames(['es'], { type: 'region' });
|
||||
const { locale } = Astro.params;
|
||||
|
||||
const locale = Astro.currentLocale;
|
||||
|
||||
dayjs.locale(locale);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
import { getCollection, getEntry } from "astro:content";
|
||||
import NewsCard from "../cards/NewsCard.astro";
|
||||
const newsItems = await getCollection("news", (post)=>{
|
||||
//Filter by locale
|
||||
const currentLocale = Astro.currentLocale;
|
||||
return post.data.locale == currentLocale
|
||||
});
|
||||
|
|
|
|||
|
|
@ -2,21 +2,19 @@
|
|||
import BaseHead from "../components/BaseHead.astro";
|
||||
import Footer from "../components/Footer.astro";
|
||||
import "../styles/global.css";
|
||||
import '@fontsource/poppins/100.css';
|
||||
import '@fontsource/poppins/400.css';
|
||||
import '@fontsource/poppins/500.css';
|
||||
import '@fontsource/poppins/700.css';
|
||||
import '@fontsource-variable/kameron';
|
||||
import "@fontsource/poppins/100.css";
|
||||
import "@fontsource/poppins/400.css";
|
||||
import "@fontsource/poppins/500.css";
|
||||
import "@fontsource/poppins/700.css";
|
||||
import "@fontsource-variable/kameron";
|
||||
|
||||
const { title } = Astro.props;
|
||||
---
|
||||
|
||||
<html lang="en" class="scroll-smooth">
|
||||
<BaseHead title={title} />
|
||||
<body class="font-primary">
|
||||
<article>
|
||||
<slot />
|
||||
</article>
|
||||
<Footer />
|
||||
</body>
|
||||
<BaseHead title={title} />
|
||||
<body class="font-primary">
|
||||
<slot />
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in New Issue