Commit c4533b48 authored by Marien Fressinaud's avatar Marien Fressinaud

add: Allow pages to be private

parent d1f6d125
......@@ -36,6 +36,9 @@ class Page:
def template(self):
return self.meta["PAGE_TEMPLATE"]
def is_private(self):
return self.meta.get("PAGE_PRIVATE", False)
def set_articles(self, articles):
articles.sort(key=lambda article: article.date(), reverse=False)
self.meta["ARTICLES"] = articles
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment