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 }}