Hello,
I am trying to define a page .Title
for my index.html
, by ways of front matter in the content/_index.md
file. However, when I display the title via:
<title>{{ block "title" . }}{{ .Site.Title }} {{ with .Title }} | {{ . }}{{ end }}{{ end }}</title>
I end up with a result of SiteTitle | SiteTitle
rather than Title | SiteTitle
.
Here is my content/_index.md
:
{
"title": "Home"
}
Why is this happening?
Thanks.