leoncvlt / loconotion

📄 Python tool to turn Notion.so pages into lightweight, customizable static websites
841 stars 132 forks source link

Generate sitemap #128

Open kevindaffaarr opened 1 year ago

kevindaffaarr commented 1 year ago

Here I added additional scripts, so after self.parse_page(self.starting_url), the code generates a sitemap using self.processed_pages values (which is the slugs). But the sitemap needed a domain for a complete link, it won't generate a sitemap if the domain is not defined in the toml file. The protocol is already default to https, and the remove_html_extension is already default to false.