summaryrefslogtreecommitdiffstats
path: root/templates/tree.md
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-30 19:33:04 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-30 19:33:04 +0200
commit9b0ee130c7408e839ceaa0de97a12c9da35e216f (patch)
treeca4d84897b7ae951d1dcea895dae08a0222a5f33 /templates/tree.md
parentf2c9a0297324c8a6be2cb0b58d0c12c2f3406529 (diff)
downloadgit2hugo-9b0ee130c7408e839ceaa0de97a12c9da35e216f.tar.gz
g2h: Link subdir names in tree page
Files are also clickable already but no file page yet
Diffstat (limited to 'templates/tree.md')
-rw-r--r--templates/tree.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/tree.md b/templates/tree.md
index 654c9d0..7a891ab 100644
--- a/templates/tree.md
+++ b/templates/tree.md
@@ -4,7 +4,7 @@
| Name | Last modified |
|------|---------------|
{%- for entry in entries %}
-| {{ entry.name }} | {% if entry.modified %} {{ entry.modified.strftime('%Y-%m-%d %H:%M:%S') }} {% endif %} |{% endfor %}
+| [{{ entry.name }}](/{{ subdir }}/{{ entry.name}}) | {% if entry.modified %} {{ entry.modified.strftime('%Y-%m-%d %H:%M:%S') }} {% endif %} |{% endfor %}
{% else %}
No files.
{% endif %}