feat: Demo config changed
This commit is contained in:
parent
a962046183
commit
c518672db0
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
permalink: "{{ hippie.demoPath }}"
|
permalink: "{{ hippie.permalink }}"
|
||||||
title: Index
|
title: Index
|
||||||
---
|
---
|
||||||
{% assign pageId = page.fileSlug -%}
|
{% assign pageId = page.fileSlug -%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue