aboutsummaryrefslogtreecommitdiff
path: root/inc/sitemap.py
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-12 21:30:39 +0000
committerng0 <ng0@n0.is>2019-11-12 21:30:39 +0000
commitab19fc81090ebbbecf471b010bc41f5a43ec858f (patch)
tree32e94439fbec80a06326be18ed40b9256851014b /inc/sitemap.py
parent1fa59360a22db580a8b2b6a201d11eb545f7aa81 (diff)
downloadwww-ab19fc81090ebbbecf471b010bc41f5a43ec858f.tar.gz
www-ab19fc81090ebbbecf471b010bc41f5a43ec858f.zip
inc: more logic to remove code from Makefile. news/index.hmtl.j2: syntax.
Diffstat (limited to 'inc/sitemap.py')
-rw-r--r--inc/sitemap.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/sitemap.py b/inc/sitemap.py
index e050c77d..5ccf7447 100644
--- a/inc/sitemap.py
+++ b/inc/sitemap.py
@@ -1,6 +1,7 @@
1import os 1import os
2from pathlib import Path, PurePosixPath 2from pathlib import Path, PurePosixPath
3 3
4
4def sitemap_tree(path): 5def sitemap_tree(path):
5 tree = dict(name=PurePosixPath(path).name, children=[]) 6 tree = dict(name=PurePosixPath(path).name, children=[])
6 try: 7 try: