Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious committed Sep 19, 2023
1 parent 124934e commit 0e41d61
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/PhotoTeaser.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const { title, image } = data
width={202}
height={202}
src={image}
alt={title}
alt={`Photo for ${title}`}
title={title}
objectFit
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/PostTeaser/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 19 additions & 6 deletions src/components/layouts/Base/Head.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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>
3 changes: 2 additions & 1 deletion src/components/layouts/Base/SchemaOrg.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const schema = datePublished
'@type': 'BlogPosting',
author: {
'@type': 'Person',
name: author.name
name: author.name,
url: author.url
},
publisher: {
'@type': 'Organization',
Expand Down
2 changes: 2 additions & 0 deletions src/pages/manifest.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export const GET: APIRoute = async () => {
start_url: '/',
display: 'standalone',
id: `${config.siteTitle}-blog`,
theme_color: '#e7eef4',
background_color: '#e7eef4',
icons
}

Expand Down

1 comment on commit 0e41d61

@vercel
Copy link

@vercel vercel bot commented on 0e41d61 Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

blog-git-main-kremalicious.vercel.app
blog-kremalicious.vercel.app
kremalicious.vercel.app

Please sign in to comment.