diff --git a/src/components/ArticleViewCounter.svelte b/src/components/ArticleViewCounter.svelte index af96efd..3acecb3 100644 --- a/src/components/ArticleViewCounter.svelte +++ b/src/components/ArticleViewCounter.svelte @@ -15,23 +15,24 @@ }); - - +{#if counter !== null} + + + + - - - + + - - - - {#if counter !== null} - {counter} - {/if} - + {counter} + +{/if} diff --git a/src/pages/articles/[article].astro b/src/pages/articles/[article].astro index 3350919..02f0145 100644 --- a/src/pages/articles/[article].astro +++ b/src/pages/articles/[article].astro @@ -37,7 +37,9 @@ const title = headings[0].text; } - + + +