Skip to content

Commit

Permalink
fix meta, fix install
Browse files Browse the repository at this point in the history
  • Loading branch information
avoonix committed May 26, 2022
1 parent 1964ed4 commit d50c9f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build]
publish = "build/"
command = "npx pnpm install --store=node_modules/.pnpm-store && npx playwright install && npx pnpm build"
command = "npx pnpm install --store=node_modules/.pnpm-store && npx playwright install chromium && npx pnpm build"
[build.environment]
NPM_FLAGS = "--version"
[[redirects]]
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/DefinitionHead.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@
<svelte:head>
{@html schema}
</svelte:head>
<Meta title={name} {url} {description} {image} />
<Meta title={name} {url} {description} {image} largeImage />
3 changes: 2 additions & 1 deletion src/lib/components/Meta.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
export let image: string | null = null;
const formattedTitle =
title && title !== variables.siteName ? `${title} | ${variables.siteName}` : variables.siteName;
export let largeImage = false;
</script>

<svelte:head>
Expand All @@ -24,7 +25,7 @@
<meta property="og:description" content={description} />

<meta name="twitter:url" content={url} />
<meta name="twitter:card" content="summary" />
<meta name="twitter:card" content={largeImage ? "summary_large_image" : "summary"} />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<!-- <meta name="twitter:site" content="@author" /> -->
Expand Down

0 comments on commit d50c9f0

Please sign in to comment.