Theming
This commit is contained in:
parent
9a65be07e4
commit
d17cb3509a
9 changed files with 89 additions and 34 deletions
|
|
@ -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",
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue