fix locale_url filter
This commit is contained in:
parent
3ebaca1a0e
commit
237f28655d
2 changed files with 4 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ lastfm: false
|
||||||
<div class="header-wrapper">
|
<div class="header-wrapper">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1>{{ meta.sitename }}</h1>
|
<h1>{{ meta.sitename }}</h1>
|
||||||
<a href="/"><div class="header-banner" title="{{ meta.sitename }}"></div></a>
|
<a href={{ "/" | locale_url }}><div class="header-banner" title="{{ meta.sitename }}"></div></a>
|
||||||
<!--<div class="motd">
|
<!--<div class="motd">
|
||||||
<marquee behavior="scroll" direction="left">
|
<marquee behavior="scroll" direction="left">
|
||||||
<p>{{ meta.motd }}</p>
|
<p>{{ meta.motd }}</p>
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,8 @@ module.exports = function(eleventyConfig) {
|
||||||
|
|
||||||
eleventyConfig.addPlugin(eleventySass);
|
eleventyConfig.addPlugin(eleventySass);
|
||||||
eleventyConfig.addPlugin(I18nPlugin, {
|
eleventyConfig.addPlugin(I18nPlugin, {
|
||||||
defaultLanguage: "en"
|
defaultLanguage: "en",
|
||||||
|
errorMode: "allow-fallback" // /en/ -> /
|
||||||
});
|
});
|
||||||
eleventyConfig.addDataExtension("toml", (contents) => toml.parse(contents));
|
eleventyConfig.addDataExtension("toml", (contents) => toml.parse(contents));
|
||||||
|
|
||||||
|
|
@ -40,7 +41,7 @@ module.exports = function(eleventyConfig) {
|
||||||
translations,
|
translations,
|
||||||
fallbackLocales: {
|
fallbackLocales: {
|
||||||
"*": "en",
|
"*": "en",
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue