feat: Demo config changed

This commit is contained in:
sthag 2026-04-03 12:35:36 +02:00
parent a962046183
commit c518672db0
2 changed files with 4 additions and 3 deletions

View file

@ -31,7 +31,8 @@ export default async function (eleventyConfig) {
return (data) => `${data.page.filePathStem}.${data.page.outputFileExtension}`; return (data) => `${data.page.filePathStem}.${data.page.outputFileExtension}`;
}); });
const demoPath = await hasFiles('source/screens') ? '/demo/' : '/'; // TODO: Demo entfernen
const permalinkPath = await hasFiles('source/screens') ? '/demo/' : '/';
eleventyConfig.addGlobalData('hippie', { eleventyConfig.addGlobalData('hippie', {
brand: 'hippie', brand: 'hippie',
@ -44,7 +45,7 @@ export default async function (eleventyConfig) {
mail: 'name@domain.tld', mail: 'name@domain.tld',
domain: 'https://domain.tld' domain: 'https://domain.tld'
}, },
demoPath: demoPath, permalink: permalinkPath,
debugMode: true, debugMode: true,
legacyMode: false legacyMode: false
}); });

View file

@ -1,5 +1,5 @@
--- ---
permalink: "{{ hippie.demoPath }}" permalink: "{{ hippie.permalink }}"
title: Index title: Index
--- ---
{% assign pageId = page.fileSlug -%} {% assign pageId = page.fileSlug -%}