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
Tim Bannister 2025-08-07 20:51:17 +01:00
parent 913cad9905
commit 6dcbdd1677
No known key found for this signature in database
GPG Key ID: 9BF3452DD26C1742
2 changed files with 0 additions and 2 deletions

View File

@ -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>

View File

@ -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>