don't show .Title in head title if empty

This commit is contained in:
Gabriele Musco 2021-04-14 11:00:16 +02:00
parent 8b85e7c51f
commit 78e9b5b361
No known key found for this signature in database
GPG Key ID: 8539FD3454380B83
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
<link rel="shortcut icon" href='{{ .Site.Params.favicon | default "/img/favicon.png" }}' type="image/x-icon" />
<title>
{{ if ne .Title .Site.Title }}
{{ if and (.Title) (ne .Title .Site.Title) }}
{{ .Title }} &ndash;
{{ end }}
{{ .Site.Title | default "Ficurinia" }}