Files
blog/src/index.ts
wholteza 9293108dcf Redesign of index
Squashed commit of the following:

commit 1d157b529f
Author: wholteza <zackarias@montell.se>
Date:   Fri Sep 19 20:53:00 2025 +0200

    Improve on profile

commit 3e3c209ac9
Author: wholteza <zackarias@montell.se>
Date:   Fri Sep 19 20:28:21 2025 +0200

    Finish styling index

commit 4e68f393bd
Author: wholteza <zackarias@montell.se>
Date:   Fri Sep 19 19:45:22 2025 +0200

    Links

commit fcba900a7e
Author: wholteza <zackarias@montell.se>
Date:   Fri Sep 19 15:37:35 2025 +0200

    add fetchpriority

commit 0478cb71b9
Author: wholteza <zackarias@montell.se>
Date:   Thu Sep 18 14:44:35 2025 +0200

    wip redesign
2025-09-19 20:54:49 +02:00

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();