From a6da4080099d47f6e733bac021a1967c06242097 Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Sat, 7 Sep 2024 18:41:43 +0200 Subject: only use unpublished content when building locally --- __main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '__main__.py') 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]: -- cgit v1.2.3-70-g09d2