Commit c4533b48 authored by berumuron's avatar berumuron
Browse files

add: Allow pages to be private

parent d1f6d125
...@@ -36,6 +36,9 @@ class Page: ...@@ -36,6 +36,9 @@ class Page:
def template(self): def template(self):
return self.meta["PAGE_TEMPLATE"] return self.meta["PAGE_TEMPLATE"]
def is_private(self):
return self.meta.get("PAGE_PRIVATE", False)
def set_articles(self, articles): def set_articles(self, articles):
articles.sort(key=lambda article: article.date(), reverse=False) articles.sort(key=lambda article: article.date(), reverse=False)
self.meta["ARTICLES"] = articles 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