diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-08-23 15:58:27 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-08-23 15:58:27 +0530 |
| commit | 741fc9d22060f3e728aa0f82957291e0596a0be9 (patch) | |
| tree | 2b245fd3f423c87587b78529f4c782500c4d3690 | |
| parent | 3bda73bdc2417cacdb8ae8820aae8cd80264f736 (diff) | |
layouts/head : fix duplicate title
title - title
| -rw-r--r-- | layouts/partials/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 44343ae..fbc6ee6 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,7 +2,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- Title --> -<title>{{ if .Title }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title> +<title>{{ if .IsHome }}{{else}}{{ if .Title }}{{ .Title }} - {{ end }}{{end}}{{ .Site.Title }}</title> <!-- Meta --> {{- if eq .Kind "page" }} <meta name="description" content="{{ .Summary }}"> |
