I’m guessing this is intentional and I’m not using it how its intended but I’ve got something like this in my themes index.html
:
{{ if .IsHome }}
<div class="column centered">
<h1 class="text-center">About</h1>
{{ .Content }}
</div>
{{ end }}
and it renders as I expect on the homepage of my website (/
) but also renders on /page/2/
. Is this expected? If it is, is there a way to detect that I’m not on the root/homepage?
I’m using Hugo version v0.42.1 darwin/amd64.