diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-08-24 18:31:16 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-08-24 18:31:40 +0200 |
| commit | c665dae57b12a80004e7ee4fca4ea5e9df7378d6 (patch) | |
| tree | 5dd37dfc186d6bba76d30040a24d2c81983bcbfa /templates/overview.md | |
| parent | 54f78e712baafa9ab6072508e004b2b6bf6430f8 (diff) | |
| download | git2hugo-c665dae57b12a80004e7ee4fca4ea5e9df7378d6.tar.gz | |
g2h: Link to commit pages from overview page
Diffstat (limited to 'templates/overview.md')
| -rw-r--r-- | templates/overview.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/overview.md b/templates/overview.md index c1f1d05..5b93863 100644 --- a/templates/overview.md +++ b/templates/overview.md @@ -4,7 +4,7 @@ | Branch | Commit | Date | |--------|--------|------| {%- for branch in branches %} -| {{ branch.name }} | {{ branch.commit.summary }} | {{ branch.commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %} +| {{ branch.name }} | [{{ branch.commit.summary }}](/{{ content_subdir }}/{{ branch.commit.hexsha }}) | {{ branch.commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %} {% else %} No branches found. {% endif %} @@ -13,7 +13,7 @@ No branches found. | Tag | Commit | Date | |-----|--------|------| {%- for tag in tags %} -| {{ tag.name }} | {{ tag.commit.summary }} | {{ tag.commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %} +| {{ tag.name }} | [{{ tag.commit.summary }}](/{{ content_subdir }}/{{ tag.commit.hexsha }}) | {{ tag.commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %} {% else %} No tags found. {% endif %} |