summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-25 00:12:59 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-30 18:41:33 +0200
commitbdd4756094e961f8951e4a1ddb6cd875c5b0026c (patch)
treeef93acf2f0939bede31ffab482536f962a8ad4a1 /templates
parent7d1797a6428447ff4dfd473111f6b40dc505ac43 (diff)
downloadgit2hugo-bdd4756094e961f8951e4a1ddb6cd875c5b0026c.tar.gz
g2h: Add tree page
Diffstat (limited to 'templates')
-rw-r--r--templates/tree.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/tree.md b/templates/tree.md
new file mode 100644
index 0000000..654c9d0
--- /dev/null
+++ b/templates/tree.md
@@ -0,0 +1,10 @@
+{% include '_head.md' %}
+
+{% if entries %}
+| Name | Last modified |
+|------|---------------|
+{%- for entry in entries %}
+| {{ entry.name }} | {% if entry.modified %} {{ entry.modified.strftime('%Y-%m-%d %H:%M:%S') }} {% endif %} |{% endfor %}
+{% else %}
+No files.
+{% endif %}