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 nikola-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nikola-discuss/CAMw%2Bj7LPDxEu-3bsar90hCxaB60j2%3D6hcWYGCquDioufk83Umw%40mail.gmail.com.