From 639b739a3fc69e8ae4476d8eca5393d221d3a0b8 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sun, 31 Aug 2025 15:58:30 +0200 Subject: g2h: Link to tree from overview branch/tag names --- README.md | 2 +- templates/overview.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fd59661..b941d34 100644 --- a/README.md +++ b/README.md @@ -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 %} -- cgit v1.2.3