diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-08-24 12:53:59 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-08-24 12:53:59 +0200 |
| commit | 782a350e1f56292176ac8471195c889e47b2b841 (patch) | |
| tree | 441c689e1a638472fb1e090f2f0888c2ecd54372 /templates | |
| parent | 978703ebc86060555da3df4c376e37d16aecce29 (diff) | |
| download | git2hugo-782a350e1f56292176ac8471195c889e47b2b841.tar.gz | |
g2h:Add branches, tags and project name to overview page
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/overview.md | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/templates/overview.md b/templates/overview.md index ce3e055..cc6f990 100644 --- a/templates/overview.md +++ b/templates/overview.md @@ -1,7 +1,23 @@ --- -title: Overview +title: {{ title }} --- -# Overview +# {{ title }} -{{ commits }} +{% if branches %} +| Branch | Commit | Date | +|--------|--------|------| +{%- for branch in branches %} +| {{ branch.name }} | {{ branch.commit.summary }} | {{ branch.commit.authored_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %} +{% else %} +No branches found. +{% endif %} + +{% if tags %} +| Tag | Commit | Date | +|--------|--------|------| +{%- for tag in tags %} +| {{ tag.name }} | {{ tag.commit.summary }} | {{ tag.commit.authored_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %} +{% else %} +No tags found. +{% endif %} |