From 9b030b24f4205d820ad3ebef8b9f40dbbb0325d7 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Wed, 16 Apr 2025 16:42:21 +0200 Subject: [PATCH] feat: added parent context --- stsg/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stsg/build.py b/stsg/build.py index 6ec9cec..83b6af5 100644 --- a/stsg/build.py +++ b/stsg/build.py @@ -171,6 +171,8 @@ class Article: self.context: Dict[str, Any] = {} self.context_shared: Dict[str, Any] = {} + if parent is not None: + self.context["parent"] = parent.context_shared # initializing the config values of the article config_file = self.directory / "index.toml"