diff options
author | ng0 <ng0@n0.is> | 2019-11-12 21:30:39 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-11-12 21:30:39 +0000 |
commit | ab19fc81090ebbbecf471b010bc41f5a43ec858f (patch) | |
tree | 32e94439fbec80a06326be18ed40b9256851014b /inc/sitemap.py | |
parent | 1fa59360a22db580a8b2b6a201d11eb545f7aa81 (diff) | |
download | www-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.py | 1 |
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 @@ | |||
1 | import os | 1 | import os |
2 | from pathlib import Path, PurePosixPath | 2 | from pathlib import Path, PurePosixPath |
3 | 3 | ||
4 | |||
4 | def sitemap_tree(path): | 5 | def sitemap_tree(path): |
5 | tree = dict(name=PurePosixPath(path).name, children=[]) | 6 | tree = dict(name=PurePosixPath(path).name, children=[]) |
6 | try: | 7 | try: |