Hey there, is there a way to detect if Nikola is running in `auto` or
`serve` mode and use this variable in template files?
I would like to build some templates which aid in development and only show
if I view the Nikola site locally via `nikola auto -b` or `nikola serve
-b`.
Example: the [Hugo](gohugo.io) static site generator sets a variable
`Environment=development` during local builds with `hugo serve -w`. With
the variable `{{ if .Site.IsServer }}` within a template I can detect if
the site is running locally in server mode and decide which elements of
this template are rendered within the build site.
--
You received this message because you are subscribed to the Google Groups
"nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nikola-discuss/9890b776-cdbb-4df2-8d7a-611608c083b0n%40googlegroups.com.