45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
---
|
|
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 ShareSticky from "../components/ShareSticky.vue";
|
|
const {
|
|
title,
|
|
description,
|
|
image,
|
|
url
|
|
} = Astro.props;
|
|
|
|
const currentLocale = Astro.currentLocale ?? 'es';
|
|
const direction = currentLocale === 'he' ? 'rtl' : 'ltr';
|
|
---
|
|
|
|
<html lang={currentLocale} dir={direction} class="scroll-smooth">
|
|
<BaseHead
|
|
title={title}
|
|
description={description}
|
|
image={image}
|
|
url={url}
|
|
/>
|
|
<script>
|
|
document.addEventListener('contextmenu', (event) => {
|
|
const target = event.target as HTMLElement;
|
|
if (target.tagName === 'IMG') {
|
|
event.preventDefault();
|
|
}
|
|
});
|
|
</script>
|
|
<body class="font-primary">
|
|
{Astro.url.pathname.includes('/news/') && (
|
|
<ShareSticky client:only url={Astro.url.href} />
|
|
)}
|
|
<slot />
|
|
<Footer />
|
|
</body>
|
|
</html>
|