mirror of
https://github.com/KevinMidboe/planetposen-frontend.git
synced 2025-12-29 13:01:01 +00:00
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:
@@ -34,17 +34,17 @@
|
||||
|
||||
<td class="stock-column">{product?.sum_stock}</td>
|
||||
|
||||
<td class="date-column"
|
||||
>{new Intl.DateTimeFormat('nb-NO', { dateStyle: 'short', timeStyle: 'short' }).format(
|
||||
<td class="date-column">
|
||||
{new Intl.DateTimeFormat('nb-NO', { dateStyle: 'short', timeStyle: 'short' }).format(
|
||||
new Date(product.created || 0)
|
||||
)}</td
|
||||
>
|
||||
)}
|
||||
</td>
|
||||
|
||||
<td class="date-column"
|
||||
>{new Intl.DateTimeFormat('nb-NO', { dateStyle: 'short', timeStyle: 'short' }).format(
|
||||
<td class="date-column">
|
||||
{new Intl.DateTimeFormat('nb-NO', { dateStyle: 'short', timeStyle: 'short' }).format(
|
||||
new Date(product.updated || 0)
|
||||
)}</td
|
||||
>
|
||||
)}
|
||||
</td>
|
||||
</tr>
|
||||
{/each}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user