summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-24 18:19:13 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-24 18:19:13 +0200
commit54f78e712baafa9ab6072508e004b2b6bf6430f8 (patch)
tree93d54a8efc60a709d6e370add61b3f1962b4e6f9 /templates
parentd8d67f6ba38388aecbf66d791432d5cd3aa8db6e (diff)
downloadgit2hugo-54f78e712baafa9ab6072508e004b2b6bf6430f8.tar.gz
g2h: Link to commit pages from commit log
Diffstat (limited to 'templates')
-rw-r--r--templates/log.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/log.md b/templates/log.md
index 70f719f..1949cf2 100644
--- a/templates/log.md
+++ b/templates/log.md
@@ -4,7 +4,7 @@
| Message | Branches/Tags | Date |
|---------|---------------|------|
{%- for commit in commits %}
-| {{ commit.summary }} | {% if commit.refs %}{{ commit.refs | join(', ') }}{% endif %} | {{ commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %}
+| [{{ commit.summary }}](/{{ content_subdir}}/{{ commit.hexsha }}/) | {% if commit.refs %}{{ commit.refs | join(', ') }}{% endif %} | {{ commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %}
{% else %}
No commits found.
{% endif %}