Use og:type article for pages with header images
This commit is contained in:
parent
171795b3fe
commit
5529f3bff1
1 changed files with 4 additions and 2 deletions
|
@ -18,14 +18,16 @@
|
||||||
{$page.data.title ? $page.data.title + " | pancakes" : "pancakes"}
|
{$page.data.title ? $page.data.title + " | pancakes" : "pancakes"}
|
||||||
</title>
|
</title>
|
||||||
<meta name="description" content={$page.data.description || "🐈⬛"} />
|
<meta name="description" content={$page.data.description || "🐈⬛"} />
|
||||||
<meta property="og:type" content="website" />
|
|
||||||
<meta property="og:site_name" content="pancakes" />
|
<meta property="og:site_name" content="pancakes" />
|
||||||
<meta
|
<meta
|
||||||
property="og:url"
|
property="og:url"
|
||||||
content={"https://pancakes.gay" + $page.url.pathname}
|
content={"https://pancakes.gay" + $page.url.pathname}
|
||||||
/>
|
/>
|
||||||
<meta property="og:title" content={$page.data.title || "pancakes"} />
|
<meta property="og:title" content={$page.data.title || "pancakes"} />
|
||||||
{#if !$page.data.header}
|
{#if $page.data.header}
|
||||||
|
<meta property="og:type" content="article" />
|
||||||
|
{:else}
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:image" content="/favicon.png" />
|
<meta property="og:image" content="/favicon.png" />
|
||||||
<meta property="og:image:alt" content="a black cat with large eyes" />
|
<meta property="og:image:alt" content="a black cat with large eyes" />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Add table
Reference in a new issue