We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9f5341 commit 3f58ddeCopy full SHA for 3f58dde
build/index.js
@@ -48,7 +48,7 @@ Metalsmith(cwd)
48
lang(current, locale, slug) {
49
locale = locale || current.locale || this.defaultLocale;
50
slug = slug || current.slug;
51
- const found = this.links.find(l => l.endsWith(`${slug}/index.html`) && l.includes(locale));
+ const found = this.links.find(l => l.endsWith(`${slug}/index.html`) && l.includes(`/${locale}/`));
52
53
if (found) {
54
return found;
0 commit comments