diff --git a/voussoir.net/writing/vmarkdown.py b/voussoir.net/writing/vmarkdown.py index f36aef5..99b1778 100644 --- a/voussoir.net/writing/vmarkdown.py +++ b/voussoir.net/writing/vmarkdown.py @@ -740,6 +740,9 @@ def markdown_flask(core_filename, port, *args, **kwargs): if path.is_dir: atags = [] + if path in cwd: + parent = path.parent.relative_to(cwd, simple=True) + atags.append(f'..') children = sorted(path.listdir(), key=lambda p: (p.is_file, p.basename.lower())) for child in children: relative = child.relative_to(cwd, simple=True)