From 61157e24085f21f6f2a7f1725894464f6a6529e2 Mon Sep 17 00:00:00 2001 From: phil65 Date: Wed, 27 Sep 2023 14:07:36 +0200 Subject: [PATCH] chore: cleanup --- mknodes/pages/pagetemplate.py | 8 -------- mknodes/theme/materialtheme.py | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/mknodes/pages/pagetemplate.py b/mknodes/pages/pagetemplate.py index 97aa705a..6f400d23 100644 --- a/mknodes/pages/pagetemplate.py +++ b/mknodes/pages/pagetemplate.py @@ -63,14 +63,6 @@ def __repr__(self): _filter_empty=True, ) - @property - def announcement_bar(self): - return self.announce_block.content - - @announcement_bar.setter - def announcement_bar(self, value): - self.announce_block.content = value - @property def content(self): return self.content_block.content diff --git a/mknodes/theme/materialtheme.py b/mknodes/theme/materialtheme.py index baecee0d..8229d844 100644 --- a/mknodes/theme/materialtheme.py +++ b/mknodes/theme/materialtheme.py @@ -178,13 +178,13 @@ def iter_nodes(self): @property def announcement_bar(self): - return self.main_template.announcement_bar + return self.main_template.announce_block.content @announcement_bar.setter def announcement_bar(self, value): if isinstance(value, mknode.MkNode): value.associated_project = self.associated_project - self.main_template.announcement_bar = value + self.main_template.announce_block.content = value def get_accent_color(self) -> str: # sourcery skip: use-or-for-fallback