minor bug fix in translation urls
All checks were successful
continuous-integration/drone/push Build is passing

added more heading icons
This commit is contained in:
Samuel Philipp 2021-04-05 21:46:34 +02:00
parent ddfde3282c
commit 4448b13580
Signed by: samuel-p
GPG key ID: 2AD495D17760CB4E
8 changed files with 13 additions and 23 deletions

View file

@ -11,6 +11,9 @@ module.exports = function(eleventyConfig) {
"node_modules/@fortawesome/fontawesome-free/webfonts/": "font",
"node_modules/flag-icon-css/flags/4x3/(de|us)*": "flags"
});
eleventyConfig.addShortcode("translatedUrl", function(currentLocale, newLocale) {
return this.page.url.replace(new RegExp(`\/${currentLocale}\/`), `/${newLocale}/`);
});
return {
dir: {