diff --git a/src/lib/components/SEO.svelte b/src/lib/components/SEO.svelte index a9f3e8ee..d8f579c8 100644 --- a/src/lib/components/SEO.svelte +++ b/src/lib/components/SEO.svelte @@ -3,6 +3,7 @@ export let title; export let description; + export let image; @@ -17,15 +18,21 @@ - + + - + {#if image} + + + {/if} - + - + {#if image} + + {/if} diff --git a/src/routes/blog/+page.svelte b/src/routes/blog/+page.svelte index 64cd0425..72bb251a 100644 --- a/src/routes/blog/+page.svelte +++ b/src/routes/blog/+page.svelte @@ -1,42 +1,17 @@ - - - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} Stock - Analysis Blog · stocknear - - - - - - - - - - - - - - - - +
import { numberOfUnreadNotification } from "$lib/store"; import { getImageURL } from "$lib/utils"; + import SEO from "$lib/components/SEO.svelte"; export let data; const article = data?.getArticle; - - - - - {$numberOfUnreadNotification > 0 ? `(${$numberOfUnreadNotification})` : ""} - {article?.title} · stocknear - - - - - - + - - - - - -