diff --git a/src/routes/blog/article/[slug]/+page.svelte b/src/routes/blog/article/[slug]/+page.svelte index 68e8cbcc..72f1585a 100644 --- a/src/routes/blog/article/[slug]/+page.svelte +++ b/src/routes/blog/article/[slug]/+page.svelte @@ -6,7 +6,7 @@ let article = data?.getArticle; $: { - if (data?.getParams && typeof window !== "undefined") { + if (data?.getParams) { article = data?.getArticle; } } @@ -20,57 +20,64 @@ : ""} /> -
-
-
- {#if article?.cover} - Wallpaper - {/if} -
-
-
+
+
+
+ {#if article?.cover} + Wallpaper + {/if} +
+
-

- {article?.title} -

-
-
- Last Updated: {new Date(article?.updated)?.toLocaleString( - "en-US", - { - month: "short", - day: "numeric", - year: "numeric", - daySuffix: "2-digit", - }, - )} +

+ {article?.title} +

+
+
+ Last Updated: {new Date(article?.updated)?.toLocaleString( + "en-US", + { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + }, + )} +
+
+
+ +
+
+ {@html article?.description}
- - -
-
- {@html article?.description} -
-
-
- + +
+
+
- - + + diff --git a/src/routes/learning-center/article/[slug]/+page.svelte b/src/routes/learning-center/article/[slug]/+page.svelte index 02d88e94..2f7111ac 100644 --- a/src/routes/learning-center/article/[slug]/+page.svelte +++ b/src/routes/learning-center/article/[slug]/+page.svelte @@ -18,64 +18,64 @@ image={getImageURL(article?.collectionId, article?.id, article?.cover)} /> -
-
-
- Wallpaper -
-
-
+
+
+
+ {#if article?.cover} + Wallpaper + {/if} +
+
-

- {article?.title} -

-
-
- Last Updated: {new Date(article?.updated)?.toLocaleString( - "en-US", - { - month: "short", - day: "numeric", - year: "numeric", - daySuffix: "2-digit", - }, - )} +

+ {article?.title} +

+
+
+ Last Updated: {new Date(article?.updated)?.toLocaleString( + "en-US", + { + month: "short", + day: "numeric", + year: "numeric", + daySuffix: "2-digit", + }, + )} +
+
+
+ +
+
+ {@html article?.description}
-
-
- {#each article?.tags || [] as tags} - - {/each} -
-
- - -
-
- {@html article?.description} -
-
-
- + +
+
+
- - + +