feat: added children to context
This commit is contained in:
parent
b2513f7caf
commit
b3e23a53d9
@ -161,6 +161,9 @@ class ArticleTranslation:
|
||||
self.context["content"] = html_content
|
||||
self.context["preview"] = get_preview_text(html_string=html_content)
|
||||
|
||||
# get children
|
||||
self.context["children"] = [c.article_translations_map[self.language_code].context for c in self.article.child_articles if self.language_code in c.article_translations_map]
|
||||
|
||||
def build(self):
|
||||
self.dist_path.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user