My code in config.toml
HUGO_ENV = "development"
########################### DEV
{{ if eq (getenv "HUGO_ENV") "development" }}
<!-- dev stuff here -->
baseURL = "localhost:1313"
title = "LOCAL: "
{{ end }}
########################### STAGING
and I get “Error: While parsing config: (17, 5): unexpected token” for the first curly bracket in the if statement. Any advice from you old timers?
Also, is my syntax correct in adding the environment variable:
HUGO_ENV = “development”?
Thanks!