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