diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-08-31 15:58:30 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-08-31 15:58:30 +0200 |
| commit | 639b739a3fc69e8ae4476d8eca5393d221d3a0b8 (patch) | |
| tree | 1aa9b948b683132664dde56db781d575c1042109 | |
| parent | d1632cbbd21ba0b77bc44cbc13aa9e6322739935 (diff) | |
| download | git2hugo-639b739a3fc69e8ae4476d8eca5393d221d3a0b8.tar.gz | |
g2h: Link to tree from overview branch/tag names
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | templates/overview.md | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -33,7 +33,7 @@ For a full list of options, their defaults and how they're changing the behavior - [x] Overview page. Table of branches and table of tags. Each with name, most recent message summary and last modified date. - - [ ] Link branch and tag name to tree view. + - [x] Link branch and tag name to tree view. - [x] Link commit messages to commit page. - [ ] Set `date` frontmatter to latest commit date from repo. - [x] Log page. diff --git a/templates/overview.md b/templates/overview.md index 5b93863..080524b 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 }}](/{{ content_subdir }}/{{ branch.commit.hexsha }}) | {{ branch.commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %} +| [{{ branch.name }}](/{{ content_subdir }}/{{ branch.commit.hexsha }}/t) | [{{ 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 }}](/{{ content_subdir }}/{{ tag.commit.hexsha }}) | {{ tag.commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} |{% endfor %} +| [{{ tag.name }}](/{{ content_subdir }}/{{ tag.commit.hexsha }}/t)| [{{ 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 %} |