diff --git a/src/components/layout/Footer.astro b/src/components/layout/Footer.astro index 4576cf1..927178b 100644 --- a/src/components/layout/Footer.astro +++ b/src/components/layout/Footer.astro @@ -1,5 +1,10 @@ --- import { Icon } from 'astro-icon/components' +import PageViews from '../PageViews' + +const pathname = new URL(Astro.request.url).pathname +const isBlogPost = pathname.startsWith('/blog/') && pathname !== '/blog' +const slug = pathname === '/' ? 'home' : pathname.replace(/^\/|\/$/g, '') ---