From 2a592ecd951f758a62b1c4907e5da212cf1ba264 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Thu, 18 Sep 2025 22:38:36 +0200 Subject: g2h: Set `date` frontmatter in overview page to HEAD commit --- templates/_head.md | 1 - templates/commit.md | 1 + templates/file.md | 1 + templates/log.md | 1 + templates/overview.md | 2 ++ templates/tree.md | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) (limited to 'templates') 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 %} -- cgit v1.2.3