summaryrefslogtreecommitdiffstats
path: root/g2h/tree.py
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-31 01:09:37 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-31 15:53:33 +0200
commit284f3972844ea124c0cd9ee5500e99440bb96aac (patch)
treeb8dee22222c38b12cc00daf98280e1b2060bcca7 /g2h/tree.py
parentb06dbf67b9ac9e329922d7911ee7a9b09419c5f0 (diff)
downloadgit2hugo-284f3972844ea124c0cd9ee5500e99440bb96aac.tar.gz
g2h: Add file page
Also move helpers to dedicated files.
Diffstat (limited to 'g2h/tree.py')
-rw-r--r--g2h/tree.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/g2h/tree.py b/g2h/tree.py
new file mode 100644
index 0000000..bd8116c
--- /dev/null
+++ b/g2h/tree.py
@@ -0,0 +1,2 @@
+def safe_join(tree, path):
+ return tree.join(path) if path else tree