diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-09-18 22:38:36 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-09-18 22:38:36 +0200 |
| commit | 2a592ecd951f758a62b1c4907e5da212cf1ba264 (patch) | |
| tree | fe83de1e1d92f927589a07c0a02005e99d4649f2 /templates | |
| parent | 74cd345f76dd01034c804f75e7f16b42e9c0643c (diff) | |
| download | git2hugo-2a592ecd951f758a62b1c4907e5da212cf1ba264.tar.gz | |
g2h: Set `date` frontmatter in overview page to HEAD commit
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/_head.md | 1 | ||||
| -rw-r--r-- | templates/commit.md | 1 | ||||
| -rw-r--r-- | templates/file.md | 1 | ||||
| -rw-r--r-- | templates/log.md | 1 | ||||
| -rw-r--r-- | templates/overview.md | 2 | ||||
| -rw-r--r-- | templates/tree.md | 1 |
6 files changed, 6 insertions, 1 deletions
diff --git a/templates/_head.md b/templates/_head.md index 90c29a2..9b8fdea 100644 --- a/templates/_head.md +++ b/templates/_head.md @@ -1,4 +1,3 @@ ---- title: "{{ title }}" layout: git --- diff --git a/templates/commit.md b/templates/commit.md index 8648760..d97505a 100644 --- a/templates/commit.md +++ b/templates/commit.md @@ -1,3 +1,4 @@ +--- {% include '_head.md' %} **Commit**: {{ commit.hexsha }} diff --git a/templates/file.md b/templates/file.md index 28f458a..a78d9bf 100644 --- a/templates/file.md +++ b/templates/file.md @@ -1,3 +1,4 @@ +--- {% include '_head.md' %} {% include '_breadcrumbs.md' %} diff --git a/templates/log.md b/templates/log.md index 1949cf2..afe6874 100644 --- a/templates/log.md +++ b/templates/log.md @@ -1,3 +1,4 @@ +--- {% include '_head.md' %} {% if commits %} diff --git a/templates/overview.md b/templates/overview.md index 080524b..135e107 100644 --- a/templates/overview.md +++ b/templates/overview.md @@ -1,3 +1,5 @@ +--- +date: {{ latest_commit_date }} {% include '_head.md' %} {% if branches %} diff --git a/templates/tree.md b/templates/tree.md index 8a30cee..8786021 100644 --- a/templates/tree.md +++ b/templates/tree.md @@ -1,3 +1,4 @@ +--- {% include '_head.md' %} {% if entries %} |