From 85c710b55e0b0e3f4782cbdf258e7e3e4bba8b45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20=C3=85gren?= Date: Thu, 21 Nov 2024 11:43:57 +0100 Subject: [PATCH] Revert out-of-topic changes --- hugo/content/species/_index.md | 4 ++-- hugo/layouts/partials/last_updated.html | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hugo/content/species/_index.md b/hugo/content/species/_index.md index 7d50b2ff..ba412b29 100644 --- a/hugo/content/species/_index.md +++ b/hugo/content/species/_index.md @@ -1,7 +1,7 @@ --- # This prevents the species folder from generating a html file for the path [webaddress]/species/ -build: +_build: render: never list: never publishResources: false ---- +--- \ No newline at end of file diff --git a/hugo/layouts/partials/last_updated.html b/hugo/layouts/partials/last_updated.html index 674abf06..d74d42ed 100644 --- a/hugo/layouts/partials/last_updated.html +++ b/hugo/layouts/partials/last_updated.html @@ -1,5 +1,10 @@ +{{ $lastUpdated := .Params.last_updated }} +{{ if not (or .IsHome .IsSection) }} + {{ $lastUpdated = .Parent.Params.last_updated }} +{{ end }} +

- Page last updated: {{ .Lastmod | time.Format ":date_long"}} + Page last updated: {{ $lastUpdated }}