Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Sep 27, 2023
1 parent aac311e commit 61157e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions mknodes/pages/pagetemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions mknodes/theme/materialtheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61157e2

Please sign in to comment.