mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 01:46:51 +01:00
fixes
This commit is contained in:
parent
124934e6fb
commit
0e41d6151b
@ -21,7 +21,7 @@ const { title, image } = data
|
||||
width={202}
|
||||
height={202}
|
||||
src={image}
|
||||
alt={title}
|
||||
alt={`Photo for ${title}`}
|
||||
title={title}
|
||||
objectFit
|
||||
/>
|
||||
|
@ -21,7 +21,7 @@ const { image } = post.data as CollectionEntry<'articles'>['data']
|
||||
<Picture
|
||||
class={styles.image}
|
||||
src={image}
|
||||
alt={title}
|
||||
alt={`Teaser for ${title}`}
|
||||
width={686}
|
||||
height={200}
|
||||
objectFit
|
||||
|
@ -43,6 +43,8 @@ const schema: SchemaProps = {
|
||||
}
|
||||
|
||||
const isProduction = import.meta.env.PROD
|
||||
const shouldIncludeAnalytics =
|
||||
isProduction && Astro.url.hostname === 'kremalicious.com'
|
||||
const typekitID = import.meta.env.PUBLIC_TYPEKIT_ID
|
||||
const { UMAMI_SCRIPT_URL, UMAMI_WEBSITE_ID } = getUmamiConfig()
|
||||
|
||||
@ -102,18 +104,29 @@ const faviconSvg = await getImage({ src: faviconSvgSrc, format: 'svg' })
|
||||
|
||||
{
|
||||
typekitID && (
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href={`https://use.typekit.net/${typekitID}.css`}
|
||||
/>
|
||||
<>
|
||||
<link rel="preconnect" href="https://use.typekit.net" />
|
||||
<link rel="preconnect" href="https://p.typekit.net" />
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href={`https://use.typekit.net/${typekitID}.css`}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
{style && <link rel="stylesheet" href={style} />}
|
||||
|
||||
{
|
||||
isProduction && (
|
||||
<script async src={UMAMI_SCRIPT_URL} data-website-id={UMAMI_WEBSITE_ID} />
|
||||
shouldIncludeAnalytics && (
|
||||
<>
|
||||
<link rel="preconnect" href={UMAMI_SCRIPT_URL} />
|
||||
<script
|
||||
async
|
||||
src={UMAMI_SCRIPT_URL}
|
||||
data-website-id={UMAMI_WEBSITE_ID}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
</head>
|
||||
|
@ -20,7 +20,8 @@ const schema = datePublished
|
||||
'@type': 'BlogPosting',
|
||||
author: {
|
||||
'@type': 'Person',
|
||||
name: author.name
|
||||
name: author.name,
|
||||
url: author.url
|
||||
},
|
||||
publisher: {
|
||||
'@type': 'Organization',
|
||||
|
@ -28,6 +28,8 @@ export const GET: APIRoute = async () => {
|
||||
start_url: '/',
|
||||
display: 'standalone',
|
||||
id: `${config.siteTitle}-blog`,
|
||||
theme_color: '#e7eef4',
|
||||
background_color: '#e7eef4',
|
||||
icons
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user