-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eleventy.de.js
48 lines (44 loc) · 2.27 KB
/
.eleventy.de.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(require('./.eleventy.default.js'));
// all subdirectory/*.liquid are processed implicitly,
// so we need to exclude the ones that don't match the current language
eleventyConfig.ignores.add('src/services');
eleventyConfig.ignores.add('src/_includes');
eleventyConfig.ignores.add('src/_data');
eleventyConfig.ignores.add('src/_data/de/projects');
// explicit + fast way to copy certain files and folders
eleventyConfig.addPassthroughCopy('src/fonts');
eleventyConfig.addPassthroughCopy('src/img');
eleventyConfig.addPassthroughCopy('src/vcard');
eleventyConfig.addPassthroughCopy('src/android-chrome-192x192.png');
eleventyConfig.addPassthroughCopy('src/apple-touch-icon.png');
eleventyConfig.addPassthroughCopy('src/browserconfig.xml');
eleventyConfig.addPassthroughCopy('src/site.webmanifest');
eleventyConfig.addPassthroughCopy('src/robots.txt');
eleventyConfig.addPassthroughCopy('src/favicon.ico');
eleventyConfig.addPassthroughCopy('src/favicon-16x16.png');
eleventyConfig.addPassthroughCopy('src/favicon-32x32.png');
eleventyConfig.addPassthroughCopy('src/mstile-150x150.png');
eleventyConfig.addPassthroughCopy('src/2022-4-19-www.ingo-steinke.de-1793046390-report.pdf');
eleventyConfig.addPassthroughCopy('src/2022-5-27-www.ingo-steinke.com-1503125752-report.pdf');
eleventyConfig.addPassthroughCopy('src/Shopware-6-Certified-Developer-Ingo-Steinke.pdf');
eleventyConfig.addPassthroughCopy('src/Shopware-6-Certified-Developer-Ingo-Steinke-de.pdf');
eleventyConfig.addPassthroughCopy('src/Ingo-Steinke-CV-Projects-Skills-2024-sustainable-web-developer.pdf');
eleventyConfig.addPassthroughCopy('src/Ingo-Steinke-CV-Projekte-Skills-2024-nachhaltiger-Webentwickler.pdf');
eleventyConfig.addPassthroughCopy('src/contact/send/index.php');
// redirect rules and domain configuration for netlify
// eleventyConfig.addPassthroughCopy('src/netlify.toml');
// redirect rules for apache webhosting
eleventyConfig.addPassthroughCopy('src/.htaccess');
eleventyConfig.addLiquidFilter("appendCurrentLanguageSlug", function(text) {
return text + 'de';
});
return {
dir: {
input: 'src',
data: '_data/de',
output: 'dist'
},
templateFormats: ['liquid']
}
};