Test RSS for sitemap

This commit is contained in:
octospacc 2022-07-13 15:46:40 +02:00
parent 55647f0ad0
commit 3f5534904d
2 changed files with 15 additions and 1 deletions

View File

@ -51,7 +51,7 @@ def MakeFeed(Pages, SiteName, SiteTagline, SiteDomain, MaxEntries, Lang, FullMap
Entry.updated(EditedOn)
if FullMap:
Feed.atom_file('public/sitemap.xml', pretty=(not Minify))
Feed.rss_file('public/sitemap.xml', pretty=(not Minify))
else:
os.mkdir('public/feed')
Feed.atom_file('public/feed/atom.xml', pretty=(not Minify))

14
Source/Modules/Sitemap.py Normal file
View File

@ -0,0 +1,14 @@
""" ================================= |
| This file is part of |
| staticoso |
| Just a simple Static Site Generator |
| |
| Licensed under the AGPLv3 license |
| Copyright (C) 2022, OctoSpacc |
| ================================= """
import urllib
from Modules.Utils import *
def MakeSitemap(Pages, SiteName, SiteTagline, SiteDomain, MaxEntries, Lang, Minify=False):
return None # urllib.parse.quote(query)