I am debugging (with kaushalmodi/debugprint) my site and .Site parameters after trying to do a development server thingy on my site and it appears, that .Site.IsServer is gone missing on both. Doing
{{ partial "debugprint" .Site }}
{{ partial "debugprint" site }}
brings lot’s of variables and values, but not IsServer. And the server is running on hugo server.
Is this a bug (Github has no open issue about it) or could it be that the site variables in a partial might be modified somehow? It’s in the footer of the site, so plenty of stuff was done before to make the site look nice.
Spamming the post here… it appears that those “variables” are not variables, but functions that are created when calling them. If I debug .Site.IsServer I receive a true, if I debug .Site, then IsServer is missing. That’s an issue with the documentation I guess, there should be a way to mark values as “being created when requested” and “always available” - or call them functions