diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-08-30 19:33:04 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-08-30 19:33:04 +0200 |
| commit | 9b0ee130c7408e839ceaa0de97a12c9da35e216f (patch) | |
| tree | ca4d84897b7ae951d1dcea895dae08a0222a5f33 /templates/tree.md | |
| parent | f2c9a0297324c8a6be2cb0b58d0c12c2f3406529 (diff) | |
| download | git2hugo-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.md | 2 |
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 %} |