From 78e9b5b361d99abb83da64fb31f68c3279dcc300 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Wed, 14 Apr 2021 11:00:16 +0200 Subject: [PATCH] don't show .Title in head title if empty --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b8be4c9..45271af 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,7 +18,7 @@ - {{ if ne .Title .Site.Title }} + {{ if and (.Title) (ne .Title .Site.Title) }} {{ .Title }} – {{ end }} {{ .Site.Title | default "Ficurinia" }}