I created a simple shortcode and wanted to test whether the page is the homepage, but I get the following error:
executing "shortcodes/JobGallery.html" at <.IsHome>: can't evaluate field IsHome in type *hugolib.ShortcodeWithPage
Code:
{{ if not .IsHome }}
<h1>Not the Homepage</h1>
{{ end }}
My hugo version:
Hugo Static Site Generator v0.54.0/extended windows/amd64 BuildDate: unknown