minor bug fix in translation urls
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
added more heading icons
This commit is contained in:
parent
ddfde3282c
commit
4448b13580
8 changed files with 13 additions and 23 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue