How to Customize Title Value on SERP?

I want to change Title as my created on the layouts.
I was write on my {{partial "head" . }}
<title>{{.Title}} - {{.Site.Title}}</title>
But, the result on Search Engine Result Page is like this.

I think what you want to use is {{.Params.pagetitle}}

This is what I use so if a page has no pagetitle it falls back to title:

<title>{{.Params.pagetitle | default .Title}} | {{.Site.Title}}</title>

1 Like

I was verify by using that magic code, It’s Work!

hosted by netlify using this sub-domain:
And, the result is:


Thanks a lot, Mate @benmarte!

1 Like