some fixes and some more improvements
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Samuel Philipp 2021-06-14 17:41:33 +02:00
parent 22274eed29
commit 8c05d5d97b
Signed by: samuel-p
GPG key ID: 2AD495D17760CB4E
13 changed files with 34 additions and 29 deletions

View file

@ -7,7 +7,8 @@ module.exports = function (eleventyConfig) {
eleventyConfig.setUseGitIgnore(false);
eleventyConfig.addPassthroughCopy({
"src/img": "img",
"src/font": "font"
"src/font": "font",
"src/favicon.*": "",
});
eleventyConfig.addShortcode("translatedUrl", function (currentLocale, newLocale) {
return this.page.url.replace(new RegExp(`\/${currentLocale}\/`), `/${newLocale}/`);