17 lines
377 B
JavaScript
17 lines
377 B
JavaScript
// @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";
|
|
}
|
|
};
|
|
};
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
markdown: {
|
|
remarkPlugins: [setLayout],
|
|
},
|
|
});
|