- {this.i18n.features.slice(0, 1).map(feature =>
- <>
-
-
- >
- )}
- {this.i18n.features.slice(1).map(feature =>
+ {this.i18n.features.map(feature =>
<>
diff --git a/src/Post.njs b/src/Post.njs
index dc9f59c2..ab459352 100644
--- a/src/Post.njs
+++ b/src/Post.njs
@@ -53,9 +53,9 @@ class Post extends Translatable {
};
}
- async initiate({ page, locale, params }) {
- super.initiate({ page, locale });
- const post = await this.getPostByKey({ key: params.slug, locale });
+ async initiate({ page, params }) {
+ super.initiate({ page, locale: page.locale });
+ const post = await this.getPostByKey({ key: params.slug, locale: page.locale });
Object.assign(this, post);
}
@@ -75,7 +75,7 @@ class Post extends Translatable {
{this.title}