layouts/head : fix duplicate title

title - title
This commit is contained in:
Aditya Telange 2020-08-23 15:58:27 +05:30
parent 3bda73bdc2
commit 741fc9d220
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -2,7 +2,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Title --> <!-- Title -->
<title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title> <title>{{ if .IsHome }}{{else}}{{ if .Title }}{{ .Title }} - {{ end }}{{end}}{{ .Site.Title }}</title>
<!-- Meta --> <!-- Meta -->
{{- if eq .Kind "page" }} {{- if eq .Kind "page" }}
<meta name="description" content="{{ .Summary }}"> <meta name="description" content="{{ .Summary }}">