summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/pyssg/pyssg.py9
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index f5396f7..707d387 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@ CHANGES
=======
* fix bug
+* fix bug
* add sitemap support
v0.3.1
diff --git a/src/pyssg/pyssg.py b/src/pyssg/pyssg.py
index f316c09..5d8ac33 100644
--- a/src/pyssg/pyssg.py
+++ b/src/pyssg/pyssg.py
@@ -117,10 +117,11 @@ def main() -> None:
# get all tags for sitemap construction
all_tags: list[str] = builder.get_tags()
- sitemap_builder: SitemapBuilder = SitemapBuilder(config,
- template.sitemap,
- all_tags)
- sitemap_builder.build()
+ sm_builder: SitemapBuilder = SitemapBuilder(config,
+ template.sitemap,
+ all_pages,
+ all_tags)
+ sm_builder.build()
db.write()
return