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