Skip to content

Commit 6dcbdd1

Browse files
committed
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).
1 parent 913cad9 commit 6dcbdd1

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

layouts/blog/baseof.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<link rel="canonical" href="{{ . }}">
66
{{ end }}
77
{{ partial "head.html" . }}
8-
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
98
</head>
109
<body class="td-{{ .Kind }} td-blog {{- with .Page.Params.body_class }} {{ . }}{{ end }}">
1110
<header>

layouts/docs/baseof.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<html lang="{{ .Site.Language.Lang }}" class="no-js" dir="{{ or .Site.Language.LanguageDirection `ltr` }}">
33
<head>
44
{{ partial "head.html" . }}
5-
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
65
</head>
76
<body class="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }}">
87
<header>

0 commit comments

Comments
 (0)