Commit 338b903d authored by Daniel Brötzmann's avatar Daniel Brötzmann

Use "Gajim" as homepage title

Since page title and site title are the same on the homepage, this
would lead to having "Gajim - Gajim" for the homepage title. Setting
a different title if we are on the homepage fixes this.
parent e36f627a
Pipeline #4643 passed with stage
in 10 seconds
......@@ -27,8 +27,14 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<!-- Site Title, Description, Author, and Favicon -->
{{- with ($.Scratch.Get "Title") }}
{{ if .IsHome }}
<title>{{ $.Site.Title }}</title>
{{ else }}
{{- with ($.Scratch.Get "Title") }}
<title>{{ . }} - {{ $.Site.Title }}</title>
{{- end }}
{{ end }}
{{- with ($.Scratch.Get "Title") }}
<meta property="og:title" content="{{ . }}" />
<meta name="twitter:title" content="{{ . | truncate 70 }}" />
{{- end }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment