Fix bug where some pages had two <title>s
Avoid having a <title> element twice in the <head> of some pages (documentation and blog sections).pull/51830/head
parent
913cad9905
commit
6dcbdd1677
|
@ -5,7 +5,6 @@
|
|||
<link rel="canonical" href="{{ . }}">
|
||||
{{ end }}
|
||||
{{ partial "head.html" . }}
|
||||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
</head>
|
||||
<body class="td-{{ .Kind }} td-blog {{- with .Page.Params.body_class }} {{ . }}{{ end }}">
|
||||
<header>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
<html lang="{{ .Site.Language.Lang }}" class="no-js" dir="{{ or .Site.Language.LanguageDirection `ltr` }}">
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
</head>
|
||||
<body class="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }}">
|
||||
<header>
|
||||
|
|
Loading…
Reference in New Issue