Try to use a different schema setup.

main
Zed A. Shaw 11 months ago
parent 2b11387d4e
commit 855e5603e8
  1. 16
      client/components/SEOTricks.svelte

@ -27,9 +27,9 @@
export let language = "en";
export let json_ld = {
"@context": "http://schema.org",
"@type": "WebSite",
export let schema_context = "http://schema.org";
export let schema_type = "WebSite";
export let schema_data = {
"name": og.title,
"url": og.url,
"sameAs": [`https://twitter.com/${twitter.site}`],
@ -38,10 +38,12 @@
<svelte:head>
<meta name="description" content={ og.description }>
<!-- JSON-LD spec -->
<script type="application/ld+json">
{ JSON.stringify(json_ld) }
</script>
<!-- SCHEMA.org spec -->
<div itemscope itemtype="{schema_context}/{schema_type}">
{#each Object.keys(schema_data) as key}
<meta itemprop={ key } content={ schema_data[key] }>
{/each}
</div>
<!--OG Spec for LinkedIn/Facebook/Others -->
{#each Object.keys(og) as key}

Loading…
Cancel
Save