From 2835ef004acfdbc023da83a5dd90006f544da0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 28 Jun 2023 20:46:09 +0200 Subject: [PATCH] theme: avoid duplicate title on home page if no file is provided #580 --- layouts/partials/initial.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/initial.html b/layouts/partials/initial.html index 9643ce858d..434fc1e373 100644 --- a/layouts/partials/initial.html +++ b/layouts/partials/initial.html @@ -1,4 +1,4 @@ -{{- if or .IsHome (not .Title) }} +{{- if not .Title }} {{- $title := .Site.Title }} {{- partial "heading-pre.html" . }}

{{ $title }}

{{ partial "heading-post.html" . }} {{- end }}