style: Change " to '

This commit is contained in:
sthag 2025-11-01 12:04:26 +01:00
parent 4a347b821e
commit d65016c5d1

View file

@ -14,14 +14,14 @@ module.exports = function (eleventyConfig) {
trimBlocks: true trimBlocks: true
}); });
eleventyConfig.addGlobalData("permalink", () => { eleventyConfig.addGlobalData('permalink', () => {
return (data) => `${data.page.filePathStem}.${data.page.outputFileExtension}`; return (data) => `${data.page.filePathStem}.${data.page.outputFileExtension}`;
}); });
let demoMode = false; let demoMode = false;
let pageBase = demoMode ? './demo/' : './'; let pageBase = demoMode ? './demo/' : './';
eleventyConfig.addGlobalData("hippie", { eleventyConfig.addGlobalData('hippie', {
pageBase: pageBase, pageBase: pageBase,
brand: 'hippie', brand: 'hippie',
titlePrefix: '', titlePrefix: '',
@ -30,32 +30,32 @@ module.exports = function (eleventyConfig) {
legacyMode: false legacyMode: false
}); });
eleventyConfig.addPassthroughCopy({"source/art/images": "art"}); eleventyConfig.addPassthroughCopy({'source/art/images': 'art'});
eleventyConfig.addPassthroughCopy({"source/art/favicons/**/*.+(ico|png|svg)": "."}); eleventyConfig.addPassthroughCopy({'source/art/favicons/**/*.+(ico|png|svg)': '.'});
eleventyConfig.addPassthroughCopy({"source/code/**/*.js": "js"}); eleventyConfig.addPassthroughCopy({'source/code/**/*.js': 'js'});
eleventyConfig.addPassthroughCopy({"source/data/**/*.json": "json"}); eleventyConfig.addPassthroughCopy({'source/data/**/*.json': 'json'});
eleventyConfig.addPassthroughCopy("vendor"); eleventyConfig.addPassthroughCopy('vendor');
eleventyConfig.addPassthroughCopy({"node_modules/bootstrap-icons": "vendor/bootstrap-icons"}); eleventyConfig.addPassthroughCopy({'node_modules/bootstrap-icons': 'vendor/bootstrap-icons'});
eleventyConfig.addPassthroughCopy({ eleventyConfig.addPassthroughCopy({
"node_modules/jquery/dist/jquery.min.js": "vendor/jquery.min.js", 'node_modules/jquery/dist/jquery.min.js': 'vendor/jquery.min.js',
"node_modules/jquery/dist/jquery.min.map": "vendor/jquery.min.map" 'node_modules/jquery/dist/jquery.min.map': 'vendor/jquery.min.map'
}); });
// eleventyConfig.addPassthroughCopy({"node_modules/normalize.css/normalize.css": "vendor/normalize.css"}); // eleventyConfig.addPassthroughCopy({"node_modules/normalize.css/normalize.css": "vendor/normalize.css"});
eleventyConfig.addWatchTarget("./source/style/"); eleventyConfig.addWatchTarget('./source/style/');
return { return {
dir: { dir: {
input: "source/screens", input: 'source/screens',
output: "build", output: 'build',
includes: "../templates", includes: '../templates',
data: "../data" data: '../data'
}, },
templateFormats: ["html", "liquid", "njk", "md"] templateFormats: ['html', 'liquid', 'njk', 'md']
// pathPrefix: './demo/' // pathPrefix: './demo/'
}; };
}; };