|
|
|
---
|
|
|
|
import 'katex/dist/katex.min.css'
|
|
|
|
|
|
|
|
import '@fontsource/open-sans/latin.css'
|
|
|
|
import '@fontsource/source-sans-pro/latin.css'
|
|
|
|
import '@fontsource/source-code-pro/latin.css'
|
|
|
|
|
|
|
|
import '../styles/main.scss'
|
|
|
|
|
|
|
|
const { title, description, thumbnail, pageName } = Astro.props
|
|
|
|
---
|
|
|
|
|
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
|
|
|
|
<meta property="og:title" content={title ?? 'PHC'} />
|
|
|
|
<meta property="og:description" content={description ?? 'Sito web del PHC'} />
|
|
|
|
{thumbnail && <meta property="og:image" content={thumbnail} />}
|
|
|
|
|
|
|
|
<link rel="icon" type="image/png" sizes="512x512" href="/assets/icon.png" />
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import renderMathInElement from 'katex/contrib/auto-render'
|
|
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
|
|
renderMathInElement(document.body, {
|
|
|
|
delimiters: [
|
|
|
|
{ left: '$$', right: '$$', display: true },
|
|
|
|
{ left: '$', right: '$', display: false },
|
|
|
|
{ left: '\\(', right: '\\)', display: false },
|
|
|
|
{ left: '\\[', right: '\\]', display: true },
|
|
|
|
],
|
|
|
|
throwOnError: false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<title>{title}</title>
|
|
|
|
</head>
|
|
|
|
<body class:list={Array.isArray(pageName) ? pageName : [pageName]}>
|
|
|
|
<slot />
|
|
|
|
</body>
|
|
|
|
</html>
|