Make Apache config optional and add h-feed support
This commit is contained in:
parent
bf82d8bcd6
commit
132b2b69f3
14 changed files with 182 additions and 53 deletions
|
|
@ -5,11 +5,11 @@ import DarkModeScript from "../components/DarkModeScript.astro";
|
|||
import AgeRestrictedModal from "../components/AgeRestrictedModal.astro";
|
||||
|
||||
type Props = {
|
||||
pageTitle?: string;
|
||||
pageTitle: string;
|
||||
lang?: string;
|
||||
};
|
||||
|
||||
const { pageTitle = "Gallery", lang = "en" } = Astro.props;
|
||||
const { pageTitle, lang = "en" } = Astro.props;
|
||||
---
|
||||
|
||||
<html lang={lang}>
|
||||
|
|
@ -25,6 +25,7 @@ const { pageTitle = "Gallery", lang = "en" } = Astro.props;
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{pageTitle} | Bad Manners</title>
|
||||
<link rel="me" href="https://badmanners.xyz" />
|
||||
<link rel="me" href="https://meow.social/@BadManners" />
|
||||
<link
|
||||
rel="alternate"
|
||||
|
|
|
|||
|
|
@ -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 />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue