zad
August 13, 2019, 11:28pm
1
I seem to have some difficulty in setting the title of my website on Google… There’s obviously one extra occurrence of my site name and I’d prefer to remove it if possible…
This doesn’t occur with actual blog posts themselves when indexed on Google, only the home page
Here’s a link to the head.html file for my website and the header.html file for my website (I think the problem might be in the code in one of these two files)
zwbetz
August 14, 2019, 12:30am
2
Yep. These lines in particular:
{{ if .IsHome -}}
<title>{{ .Site.Title }} {{ .Description }}</title>
{{- else -}}
<title>{{ .Title }} {{ .Description }}</title>
{{- end }}
1 Like
zad
August 14, 2019, 8:52am
3
Thanks! Any idea what the solution might be?
zwbetz
August 14, 2019, 12:29pm
4
Check your homepage .Description
1 Like
zad
August 14, 2019, 4:38pm
5
There’s this on the YAML config, would removing homeTitle remove the duplicate site title?
zad
August 14, 2019, 4:42pm
6
I also found this on the _index.md file in the content folder
zwbetz
August 14, 2019, 4:58pm
7
Looks like title
param in your home page _index.md
is the culprit. Remove the redundant wording.
2 Likes
zad
August 14, 2019, 5:15pm
8
Thanks! Appreciate the help!