summaryrefslogtreecommitdiff
path: root/__main__.py
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-09-07 18:41:43 +0200
committerBotond Hende <nettingman@gmail.com>2024-09-07 18:41:43 +0200
commita6da4080099d47f6e733bac021a1967c06242097 (patch)
tree3a4bc75d08e2f1cedc28d40da9185b3a1ba0fc83 /__main__.py
parent903aa11ab7c8baed355cff4aaf112dbf487859f5 (diff)
only use unpublished content when building locally
Diffstat (limited to '__main__.py')
-rw-r--r--__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/__main__.py b/__main__.py
index 14819f6..8083d9b 100644
--- a/__main__.py
+++ b/__main__.py
@@ -24,7 +24,7 @@ def main(output_root_path: str, local: bool):
os.mkdir(output_root_path)
jinja_env = init_jinja_env()
- posts = blogpost_processor.get_posts(Config.POST_SOURCE_DIR)
+ posts = blogpost_processor.get_posts(Config.POST_SOURCE_DIR, local)
tag_occurrence_count = {}
for post in posts:
for tag in post.meta_data[blogpost_processor.TAGS_KEY]: