summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2021-05-25 21:27:29 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2021-05-25 21:27:29 -0600
commit476084674076b8a802cf9272f58da0445f7bef75 (patch)
treeab927bf81c016d7dbfa6b494fdc7d1be4c5bb776
parentf8d6d0c058f7d6b23622ed24f0f590d26db41534 (diff)
fix bugv0.4.0
-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