You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.9 KiB
Plaintext
61 lines
1.9 KiB
Plaintext
---
|
|
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 '@fontsource/space-mono/latin.css'
|
|
import '@fontsource/iosevka/latin.css'
|
|
|
|
import '@fontsource-variable/material-symbols-outlined/full.css'
|
|
|
|
import '../styles/main.scss'
|
|
|
|
type Props = {
|
|
title?: string
|
|
description?: string
|
|
thumbnail?: string
|
|
|
|
/** Tags for the page, used for styling */
|
|
pageTags?: string | string[]
|
|
}
|
|
|
|
const { title, description, thumbnail, pageTags } = 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'} />
|
|
<meta property="og:type" content="website" />
|
|
{thumbnail && <meta property="og:image" content={thumbnail} />}
|
|
|
|
<link rel="icon" type="image/png" sizes="512x512" href="/favicon.svg" />
|
|
|
|
<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={typeof pageTags === 'string' ? [pageTags] : pageTags}>
|
|
<slot />
|
|
</body>
|
|
</html>
|