This commit is contained in:
Brad Treloar 2025-11-01 21:33:17 +10:30
parent 9a65be07e4
commit d17cb3509a
9 changed files with 89 additions and 34 deletions

View file

@ -1,17 +1,20 @@
// @ts-check
import { defineConfig } from "astro/config";
const setLayout = () => {
return function (_, file) {
if (file.data.astro.frontmatter.layout === undefined) {
file.data.astro.frontmatter.layout = "@layouts/BaseLayout.astro";
}
};
};
//const setLayout = () => {
// return function (_, file) {
// if (file.data.astro.frontmatter.layout === undefined) {
// file.data.astro.frontmatter.layout = "@layouts/BaseLayout.astro";
// }
// };
//};
// https://astro.build/config
export default defineConfig({
markdown: {
remarkPlugins: [setLayout],
//remarkPlugins: [setLayout],
shikiConfig: {
theme: "catppuccin-latte",
},
},
});