eueung / hugo-casper-two

Port of Casper 2.x to Hugo
MIT License
141 stars 116 forks source link

Added code for Issue 18 - Fixed title display condition #34

Open ansin218 opened 5 years ago

ansin218 commented 5 years ago

The if-else condition caused the title of the site to not appear on the title tag.

This has been fixed by doing:

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

y26805 commented 4 years ago

Duplicate of https://github.com/eueung/hugo-casper-two/pull/27