From 48157b18c782d735fda6fe9aa2745547425b4292 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 25 Sep 2025 23:37:53 +0200 Subject: [PATCH] Better handle empty title, allow override for landing page --- exampleSite/content.en/_index.md | 2 +- layouts/_partials/docs/html-head-title.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exampleSite/content.en/_index.md b/exampleSite/content.en/_index.md index 6f2d52a..09fd411 100644 --- a/exampleSite/content.en/_index.md +++ b/exampleSite/content.en/_index.md @@ -1,5 +1,5 @@ --- -title: Introduction +title: "" layout: landing --- diff --git a/layouts/_partials/docs/html-head-title.html b/layouts/_partials/docs/html-head-title.html index 49a109d..715bef0 100644 --- a/layouts/_partials/docs/html-head-title.html +++ b/layouts/_partials/docs/html-head-title.html @@ -1 +1 @@ -{{ partial "docs/title" . }} | {{ .Site.Title -}} +{{ with partial "docs/title" . }}{{ . }} | {{ end }}{{ .Site.Title -}}