Fix title on the index page

This commit is contained in:
Dmitry Kolosov 2020-10-07 22:27:47 +03:00
parent 85ebe8d6d4
commit 9e524ff754

View File

@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer-when-downgrade"> <meta name="referrer" content="no-referrer-when-downgrade">
<title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title> <title>{{ if and (.Title) (not .IsHome) }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
<meta name="description" content="{{ .Site.Params.Description }}"> <meta name="description" content="{{ .Site.Params.Description }}">
{{ with .OutputFormats.Get "rss" -}} {{ with .OutputFormats.Get "rss" -}}