curtiscde / hugo-theme-massively

Massively theme for Hugo static site generator
https://hugo-theme-massively.netlify.app
Other
155 stars 138 forks source link

Two titles inside head tag #12

Closed pmviva closed 6 years ago

pmviva commented 6 years ago

The htmlhead.html partial outputs two titles in the head tag

<title>{{ if not .IsHome }} {{ .Title }} &middot; {{ end }} {{ .Site.Title }}</title>
<title>{{ .Title }}</title>

A possible fix is to make the partial output the following:

<title>{{ if eq (.Title) (.Site.Title) }}{{ .Site.Title }}{{ else }}{{ .Title }} &middot; {{ .Site.Title }}{{ end }}</title>
curtiscde commented 6 years ago

Thanks for raising the issue and providing a fix.

I've merged these changes in now so closing the issue

https://github.com/curttimson/hugo-theme-massively/pull/13