feat: Change file structure
- Move return object to named export for 11ty config - screens is now view - 11ty data files moved to view/_data - templates is now view/_includes - Both are the default directories - data is now used as intended, for user data - Update index to reflect filenames and structure
This commit is contained in:
parent
610e22b3c9
commit
b67a8a893a
78 changed files with 21 additions and 19 deletions
21
.eleventy.js
21
.eleventy.js
|
|
@ -32,7 +32,7 @@ export default async function (eleventyConfig) {
|
|||
});
|
||||
|
||||
// TODO: Demo entfernen
|
||||
const permalinkPath = await hasFiles('source/screens') ? '/demo/' : '/';
|
||||
const permalinkPath = await hasFiles('source/view') ? '/demo/' : '/';
|
||||
|
||||
eleventyConfig.addGlobalData('hippie', {
|
||||
brand: 'hippie',
|
||||
|
|
@ -130,14 +130,13 @@ export default async function (eleventyConfig) {
|
|||
eleventyConfig.addPassthroughCopy({'node_modules/hippie-script/index.js': 'vendor/hippie-script.js'});
|
||||
|
||||
eleventyConfig.addWatchTarget('./source/style/');
|
||||
|
||||
return {
|
||||
dir: {
|
||||
input: 'source/screens',
|
||||
output: 'build',
|
||||
includes: '../templates',
|
||||
data: '../data'
|
||||
},
|
||||
templateFormats: ['html', 'liquid', 'md', 'njk']
|
||||
};
|
||||
}
|
||||
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
export const config = {
|
||||
dir: {
|
||||
input: 'source/view',
|
||||
output: 'build'
|
||||
},
|
||||
templateFormats: ['html', 'liquid', 'md', 'njk']
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue