mirror of
https://github.com/Motschen/midnightdust-eu.git
synced 2025-12-16 18:45:10 +01:00
Initial commit
This commit is contained in:
26
src/components/SiteMeta.astro
Normal file
26
src/components/SiteMeta.astro
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
import { ViewTransitions } from 'astro:transitions'
|
||||
|
||||
const { title, description, url, image, author } = Astro.props
|
||||
|
||||
let subtitle = 'Accessible Astro Starter'
|
||||
---
|
||||
|
||||
<!-- general meta -->
|
||||
<meta name="title" content={`${title} - ${subtitle}`} />
|
||||
<meta name="description" content={description} />
|
||||
<meta name="author" content={author} />
|
||||
|
||||
<!-- open graph -->
|
||||
<meta property="og:title" content={`${title} - ${subtitle}`} />
|
||||
<meta property="og:description" content={description} />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content={url} />
|
||||
<meta property="og:image" content={Astro.site ? `${Astro.site}${image}` : image} />
|
||||
|
||||
<!-- twitter card -->
|
||||
|
||||
<!-- page title -->
|
||||
<title>{title} - {subtitle}</title>
|
||||
|
||||
<ViewTransitions />
|
||||
Reference in New Issue
Block a user