feat!: move every layout to demo folder

- source/screens is now free for user files
- rename demo templates to their equivalent sources
- add demo maintenance template
- demo templates use html base element
This commit is contained in:
sthag 2024-08-11 12:05:18 +02:00
parent 4710f41f5a
commit c18ed30b74
23 changed files with 82 additions and 60 deletions

View file

@ -1,4 +1,6 @@
module.exports = function (eleventyConfig) {
// eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
eleventyConfig.setNunjucksEnvironmentOptions({
// throwOnUndefined: true,
trimBlocks: true
@ -8,8 +10,11 @@ module.exports = function (eleventyConfig) {
return (data) => `${data.page.filePathStem}.${data.page.outputFileExtension}`;
});
let demoMode = false;
let pageBase = demoMode ? './demo/' : './';
eleventyConfig.addGlobalData("hippie", {
pageBase: './',
pageBase: pageBase,
brand: 'hippie',
titlePrefix: '',
titlePostfix: ' - HIPPIE',
@ -37,6 +42,7 @@ module.exports = function (eleventyConfig) {
},
markdownTemplateEngine: "njk",
htmlTemplateEngine: "njk",
templateFormats: ["html", "njk", "md"]
templateFormats: ["html", "njk", "md"],
// pathPrefix: './demo/'
}
};