Squashed commit of the following: commit1d157b529fAuthor: wholteza <zackarias@montell.se> Date: Fri Sep 19 20:53:00 2025 +0200 Improve on profile commit3e3c209ac9Author: wholteza <zackarias@montell.se> Date: Fri Sep 19 20:28:21 2025 +0200 Finish styling index commit4e68f393bdAuthor: wholteza <zackarias@montell.se> Date: Fri Sep 19 19:45:22 2025 +0200 Links commitfcba900a7eAuthor: wholteza <zackarias@montell.se> Date: Fri Sep 19 15:37:35 2025 +0200 add fetchpriority commit0478cb71b9Author: wholteza <zackarias@montell.se> Date: Thu Sep 18 14:44:35 2025 +0200 wip redesign
44 lines
929 B
TypeScript
44 lines
929 B
TypeScript
import {
|
|
ToolchainBuilder,
|
|
Paths,
|
|
FileLoader,
|
|
MarkdownLoader,
|
|
StartPagePlugin,
|
|
} from "@zblog/toolchain";
|
|
|
|
const paths: Paths = {
|
|
outputDirectory: "dist",
|
|
};
|
|
|
|
new ToolchainBuilder(paths)
|
|
.addPlugins([
|
|
new MarkdownLoader({
|
|
rootPath: "src/notes",
|
|
assetsDirectoryName: "assets",
|
|
markdownHtmlReplacementTag: "{{markdown}}",
|
|
noteFileName: "note.md",
|
|
noteHtmlTemplatePath: `src/templates/note.html`,
|
|
imageWidth: 800,
|
|
}),
|
|
new FileLoader({
|
|
files: [
|
|
{
|
|
path: "src/templates/404.html",
|
|
nameOverride: "Not Found Page",
|
|
menuEntry: false,
|
|
},
|
|
{
|
|
path: "src/assets/profile.jpg",
|
|
},
|
|
{
|
|
path: "src/assets/favicon.ico",
|
|
}
|
|
],
|
|
}),
|
|
new StartPagePlugin({
|
|
indexTemplatePath: "src/templates/index.html",
|
|
contentTemplateTag: "{{content}}",
|
|
}),
|
|
])
|
|
.build();
|