diff --git a/src/lib/components/SEO/OG.svelte b/src/lib/components/SEO/OG.svelte new file mode 100644 index 0000000..4a97b2e --- /dev/null +++ b/src/lib/components/SEO/OG.svelte @@ -0,0 +1,53 @@ + + + + + + + + + {#if metadescription} + + {:else} + + {/if} + {#if featuredImage} + + + + + {/if} + {#if squareImage} + + + + + {/if} + {#if article} + + + + {/if} + {#if tags && tags.length > 0} + {#each tags as tag (tag)} + + {/each} + {/if} + diff --git a/src/lib/components/SEO/SchemaOrg.svelte b/src/lib/components/SEO/SchemaOrg.svelte new file mode 100644 index 0000000..ef7cdc2 --- /dev/null +++ b/src/lib/components/SEO/SchemaOrg.svelte @@ -0,0 +1,207 @@ + + + + {@html jsonLdScript} + diff --git a/src/lib/components/SEO/Twitter.svelte b/src/lib/components/SEO/Twitter.svelte new file mode 100644 index 0000000..9577f15 --- /dev/null +++ b/src/lib/components/SEO/Twitter.svelte @@ -0,0 +1,32 @@ + + + + + {#if image} + + {/if} + {#if twitterUsername} + + + {/if} + + + {#if article && timeToRead > 0} + + + {/if} + diff --git a/src/lib/components/SEO/index.svelte b/src/lib/components/SEO/index.svelte new file mode 100644 index 0000000..329cd2d --- /dev/null +++ b/src/lib/components/SEO/index.svelte @@ -0,0 +1,106 @@ + + + + {pageTitle} + + + + + + +