Always ensure there's a title (#53)

This commit is contained in:
Morgan Bazalgette 2018-05-03 18:31:52 +02:00 committed by Lauris BH
parent bf49466315
commit 2cc499cb4b
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
<meta property="og:image" content="https://docs.gitea.io/images/gitea.png"></meta>
{{ .Hugo.Generator }}
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
<title>{{ if and (not .IsHome) .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
{{ with .Params.goimport }}<meta name="go-import" content="{{ . }}">{{ end }}
{{ with .Params.gosource }}<meta name="go-source" content="{{ . }}">{{ end }}