theNewDynamic / gohugo-theme-ananke

Ananke: A theme for Hugo Sites
https://gohugo-ananke-theme-demo.netlify.com/
MIT License
1.09k stars 1.12k forks source link

Show how-to use the build-in hugo -e flag #621

Closed melroy89 closed 7 months ago

melroy89 commented 1 year ago

You don't need to set HUGO_ENV, you can use the built-in -e or --environment flag on the hugo command.

netlify[bot] commented 1 year ago

Deploy Preview for gohugo-ananke-theme-demo canceled.

Name Link
Latest commit dc192345b7d37a94dc78973fe01e487531385f2c
Latest deploy log https://app.netlify.com/sites/gohugo-ananke-theme-demo/deploys/63dfc207f60f670008c6c620
melroy89 commented 1 year ago

First bug needs to be resolved: https://github.com/theNewDynamic/gohugo-theme-ananke/issues/625

regisphilibert commented 7 months ago

You do have to use HUGO_ENV for this theme to build the "production" build. See https://github.com/theNewDynamic/gohugo-theme-ananke/issues/574#issuecomment-1297434544 for the motivation behind this.

It's documented.