mirror of https://gitlab.com/octtspacc/staticoso
Test RSS for sitemap
This commit is contained in:
parent
55647f0ad0
commit
3f5534904d
|
@ -51,7 +51,7 @@ def MakeFeed(Pages, SiteName, SiteTagline, SiteDomain, MaxEntries, Lang, FullMap
|
||||||
Entry.updated(EditedOn)
|
Entry.updated(EditedOn)
|
||||||
|
|
||||||
if FullMap:
|
if FullMap:
|
||||||
Feed.atom_file('public/sitemap.xml', pretty=(not Minify))
|
Feed.rss_file('public/sitemap.xml', pretty=(not Minify))
|
||||||
else:
|
else:
|
||||||
os.mkdir('public/feed')
|
os.mkdir('public/feed')
|
||||||
Feed.atom_file('public/feed/atom.xml', pretty=(not Minify))
|
Feed.atom_file('public/feed/atom.xml', pretty=(not Minify))
|
||||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue