2024-06-19 19:59:36 +02:00
|
|
|
---
|
2024-06-20 13:24:44 +02:00
|
|
|
import Footer from '../components/Footer.astro'
|
|
|
|
import Header from '../components/Header.astro'
|
2024-06-19 19:59:36 +02:00
|
|
|
interface Props {
|
|
|
|
title: string;
|
2024-06-19 20:21:58 +02:00
|
|
|
type: 'text' | 'website';
|
|
|
|
image?: string;
|
|
|
|
description?: string;
|
2024-06-19 19:59:36 +02:00
|
|
|
}
|
|
|
|
|
2024-06-19 20:21:58 +02:00
|
|
|
const {title, type, description, image} = Astro.props
|
|
|
|
|
|
|
|
const pageTitle = (title ? `${title} | ` : '') + 'Vikunja'
|
|
|
|
|
|
|
|
const imageUrl = image
|
|
|
|
? image
|
|
|
|
: new URL('/images/vikunja.jpg', Astro.url)
|
2024-06-19 19:59:36 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
2024-06-19 20:21:58 +02:00
|
|
|
<head>
|
|
|
|
<title>{pageTitle}</title>
|
|
|
|
|
|
|
|
<meta charset="UTF-8"/>
|
|
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg"/>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
|
|
|
|
<meta name="generator" content={Astro.generator}/>
|
|
|
|
|
|
|
|
<link rel="me" href="https://social.linux.pizza/@vikunja"/>
|
|
|
|
|
|
|
|
<meta property="og:title" content={pageTitle}/>
|
|
|
|
<meta name="twitter:title" content={pageTitle}/>
|
|
|
|
<meta itemprop="name" content={pageTitle}/>
|
|
|
|
<meta name="application-name" content={pageTitle}/>
|
|
|
|
|
|
|
|
<!-- Description -->
|
|
|
|
{description &&
|
|
|
|
<meta name="description" content={description}/>
|
|
|
|
<meta itemprop="description" content={description}/>
|
|
|
|
<meta property="og:description" content={description}/>
|
|
|
|
<meta name="twitter:description" content={description}/>
|
|
|
|
}
|
|
|
|
|
|
|
|
<!-- Links -->
|
|
|
|
<base href={Astro.url}/>
|
|
|
|
<link rel="canonical" href={Astro.url} itemprop="url"/>
|
|
|
|
<meta name="url" content={Astro.url}/>
|
|
|
|
<meta name="twitter:url" content={Astro.url}/>
|
|
|
|
<meta property="og:url" content={Astro.url}/>
|
|
|
|
|
|
|
|
<!-- Images -->
|
|
|
|
<meta itemprop="image" content={imageUrl}/>
|
|
|
|
<meta property="og:image" content={imageUrl}/>
|
|
|
|
<meta name="twitter:image" content={imageUrl}/>
|
|
|
|
<meta name="twitter:image:src" content={imageUrl}/>
|
|
|
|
|
|
|
|
<meta property="og:type" content={type}/>
|
|
|
|
</head>
|
2024-06-20 13:24:44 +02:00
|
|
|
<body class="bg-gray-50 font-sans text-gray-900 antialiased">
|
|
|
|
|
|
|
|
<Header/>
|
|
|
|
|
2024-06-19 20:21:58 +02:00
|
|
|
<slot/>
|
2024-06-20 13:24:44 +02:00
|
|
|
|
|
|
|
<Footer/>
|
|
|
|
|
2024-06-19 20:21:58 +02:00
|
|
|
</body>
|
2024-06-19 19:59:36 +02:00
|
|
|
</html>
|
|
|
|
<style is:global>
|
2024-06-19 20:21:58 +02:00
|
|
|
html {
|
|
|
|
font-family: system-ui, sans-serif;
|
|
|
|
}
|
2024-06-19 19:59:36 +02:00
|
|
|
</style>
|