Make Apache config optional and add h-feed support

This commit is contained in:
Bad Manners 2024-08-16 16:23:55 -03:00
parent bf82d8bcd6
commit 132b2b69f3
14 changed files with 182 additions and 53 deletions

View file

@ -6,11 +6,12 @@ import logoBM from "../assets/images/logo_bm.png";
import { t } from "../i18n";
type Props = {
pageTitle?: string;
pageTitle: string;
enablePagefind?: boolean;
class?: string;
};
const { pageTitle, enablePagefind } = Astro.props;
const { pageTitle, enablePagefind, class: className } = Astro.props;
const logo = await getImage({ src: logoBM, width: 192 });
const currentYear = new Date().getFullYear().toString();
---
@ -85,7 +86,7 @@ const currentYear = new Date().getFullYear().toString();
</div>
</div>
<main
class="ml-0 max-w-6xl px-2 pb-12 pt-4 md:ml-60 md:px-4 print:pb-0"
class:list={[className, "ml-0 max-w-6xl px-2 pb-12 pt-4 md:ml-60 md:px-4 print:pb-0"]}
data-pagefind-body={enablePagefind ? "" : undefined}
>
<slot />