{{- /* A shortcode to conditionally render content based on the current Hugo environment. Hugo environments (development, production, etc.) usage reference: - https://gohugo.io/functions/hugo/environment/ - https://gohugo.io/configuration/all/#environment For example, to render content only in the "production" environment: {{< env "production" >}} This content is only visible in production. {{< /env >}} */ -}} {{- $env := .Get 0 -}} {{- if eq $env hugo.Environment -}} {{- .Inner | .Page.RenderString -}} {{- else if hugo.IsServer -}}
[Hugo Server]: Click to expand {{ $env }} environment content.
{{- printf `%s` "\n" | trim .Inner -}}
{{- end -}}