Documentation

This commit is contained in:
squidfunk
2023-11-26 15:22:43 +01:00
parent 28ebcbfb59
commit 6be485c38f
5 changed files with 205 additions and 80 deletions

View File

@@ -67,6 +67,10 @@ class BlogConfig(Config):
categories_allowed = Type(list, default = [])
categories_toc = Optional(Type(bool))
# Settings for authors
authors = Type(bool, default = True)
authors_file = Type(str, default = "{blog}/.authors.yml")
# Settings for pagination
pagination = Type(bool, default = True)
pagination_per_page = Type(int, default = 10)
@@ -75,10 +79,6 @@ class BlogConfig(Config):
pagination_if_single_page = Type(bool, default = False)
pagination_keep_content = Type(bool, default = False)
# Settings for authors
authors = Type(bool, default = True)
authors_file = Type(str, default = "{blog}/.authors.yml")
# Settings for drafts
draft = Type(bool, default = False)
draft_on_serve = Type(bool, default = True)