Add syndication links and start blog collection

This commit is contained in:
Bad Manners 2024-09-13 10:56:42 -03:00
parent 09934a9f8e
commit 9ff1986adc
No known key found for this signature in database
GPG key ID: 8C88292CCB075609
80 changed files with 415 additions and 33 deletions

View file

@ -17,18 +17,19 @@ import {
type Props = {
pageTitle: string;
isAgeRestricted?: boolean;
enablePagefind?: boolean;
class?: string;
};
const { pageTitle, enablePagefind, class: className } = Astro.props;
const { pageTitle, enablePagefind, class: className, isAgeRestricted } = Astro.props;
const logo = await getImage({ src: logoBM, width: 192 });
const currentYear = new Date().getFullYear().toString();
const isCurrentRoute = (path: string) =>
Astro.url.pathname === path || (path !== "/" && Astro.url.pathname === `${path}/`);
---
<BaseLayout pageTitle={pageTitle}>
<BaseLayout pageTitle={pageTitle} isAgeRestricted={isAgeRestricted ?? true}>
<Fragment slot="head">
<meta property="og:title" content={pageTitle || "Bad Manners"} />
<meta property="og:url" content={Astro.url} />