Add syndication links and start blog collection
This commit is contained in:
parent
09934a9f8e
commit
9ff1986adc
80 changed files with 415 additions and 33 deletions
|
|
@ -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} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue