diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-09-18 23:17:24 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-09-18 23:17:24 +0200 |
| commit | bd403e6ab18d5cc7818e86d43c3ca0b15c5e53a1 (patch) | |
| tree | d9abea372078840e69e38401bce663b00dfbe07e /templates | |
| parent | 2a592ecd951f758a62b1c4907e5da212cf1ba264 (diff) | |
| download | git2hugo-bd403e6ab18d5cc7818e86d43c3ca0b15c5e53a1.tar.gz | |
g2h: Add navbar
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/_nav.md | 4 | ||||
| -rw-r--r-- | templates/commit.md | 2 | ||||
| -rw-r--r-- | templates/file.md | 2 | ||||
| -rw-r--r-- | templates/log.md | 2 | ||||
| -rw-r--r-- | templates/overview.md | 2 | ||||
| -rw-r--r-- | templates/tree.md | 2 |
6 files changed, 14 insertions, 0 deletions
diff --git a/templates/_nav.md b/templates/_nav.md new file mode 100644 index 0000000..873c204 --- /dev/null +++ b/templates/_nav.md @@ -0,0 +1,4 @@ +[Overview](/{{ content_subdir }}) +| [Log](/{{ content_subdir }}/l) +| [Tree](/{{ content_subdir }}/{{ this_commit }}/t) +| [Commit](/{{ content_subdir }}/{{ this_commit.hexsha }}/) diff --git a/templates/commit.md b/templates/commit.md index d97505a..3eb2437 100644 --- a/templates/commit.md +++ b/templates/commit.md @@ -1,6 +1,8 @@ --- {% include '_head.md' %} +{% include '_nav.md' %} + **Commit**: {{ commit.hexsha }} **Author**: {{ commit.author }} <{{ redacted_email }}> **Date**: {{ commit.committed_datetime.strftime('%Y-%m-%d %H:%M:%S') }} diff --git a/templates/file.md b/templates/file.md index a78d9bf..e82f1c9 100644 --- a/templates/file.md +++ b/templates/file.md @@ -1,6 +1,8 @@ --- {% include '_head.md' %} +{% include '_nav.md' %} + {% include '_breadcrumbs.md' %} {% if type == 'text' %} diff --git a/templates/log.md b/templates/log.md index afe6874..ccfb780 100644 --- a/templates/log.md +++ b/templates/log.md @@ -1,6 +1,8 @@ --- {% include '_head.md' %} +{% include '_nav.md' %} + {% if commits %} | Message | Branches/Tags | Date | |---------|---------------|------| diff --git a/templates/overview.md b/templates/overview.md index 135e107..e9a7599 100644 --- a/templates/overview.md +++ b/templates/overview.md @@ -2,6 +2,8 @@ date: {{ latest_commit_date }} {% include '_head.md' %} +{% include '_nav.md' %} + {% if branches %} | Branch | Commit | Date | |--------|--------|------| diff --git a/templates/tree.md b/templates/tree.md index 8786021..bfc8af4 100644 --- a/templates/tree.md +++ b/templates/tree.md @@ -1,6 +1,8 @@ --- {% include '_head.md' %} +{% include '_nav.md' %} + {% if entries %} {% include '_breadcrumbs.md' %} |