feat: dispaly pageview at the bottom

This commit is contained in:
KazooTTT
2024-11-25 10:43:18 +08:00
parent b3da4152ac
commit 41f48998a2
3 changed files with 28 additions and 44 deletions

View File

@ -5,7 +5,6 @@ import BlogHero from '@/components/blog/Hero.astro'
import TOC from '@/components/blog/TOC.astro'
import Button from '@/components/Button.astro'
import PageLayout from './BaseLayout.astro'
import PageViews from '@/components/PageViews'
interface Props {
post: CollectionEntry<'post'>
@ -44,9 +43,6 @@ const { headings } = await post.render()
<article class='flex-1 flex-grow break-words' data-pagefind-body>
<div id='blog-hero'>
<BlogHero content={post} />
<div class="mt-2">
<PageViews client:load slug={slug} />
</div>
</div>
<div
id='blog-gallery'