Feat: Refactor jsonld & method to update document title and description (#4)

* Generates JSON ld structured metadata from a product & appends to head

* Updated IProduct & IVariation interface

* Added IProductResponse & IProductsResponse interfaces

* Fixed sitemap urls having to many protocols

* Implemented jsonld for product w/ variations

* Aligned Product responses between backend & frontend

* PageMeta for updating head meta values: title & description

Use on any page where we want to display a unique meta page title &
description

* Set document language to norwegian

* Linting
This commit is contained in:
2022-11-30 00:39:04 +01:00
committed by GitHub
parent 296cfb80a0
commit b2a15be12e
18 changed files with 103 additions and 61 deletions

View File

@@ -0,0 +1,9 @@
<script lang="ts">
export let title: string;
export let description: string;
</script>
<svelte:head>
<title>{title}</title>
<meta name="description" content="{description}" />
</svelte:head>