mirror of
				https://gitlab.com/octtspacc/staticoso
				synced 2025-06-05 22:09:23 +02:00 
			
		
		
		
	Test RSS for sitemap
This commit is contained in:
		| @@ -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
									
								
							
							
						
						
									
										14
									
								
								Source/Modules/Sitemap.py
									
									
									
									
									
										Normal 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) | ||||
		Reference in New Issue
	
	Block a user