docs: remove comments about HUGO_ENV

we use internal methods like  and

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
This commit is contained in:
Patrick Kollitsch 2024-10-29 14:25:37 +07:00
parent 02994de6b0
commit e726c8b70f
No known key found for this signature in database
GPG key ID: 5A5360B005AD68C7
2 changed files with 1 additions and 25 deletions

View file

@ -30,7 +30,6 @@ Also includes examples of Hugo Features or Functions:
- Hugo built-in menu
- i18n
- `with`
- `HUGO_ENV`
- `first`
- `after`
- `sort`
@ -292,28 +291,6 @@ hugo server
Now enter [`localhost:1313`](http://localhost:1313/) in the address bar of your browser.
## Production
To run in production (e.g. to have Google Analytics show up), run `HUGO_ENV=production` before your build command. For example:
```bash
HUGO_ENV=production hugo
```
Note: The above command will not work on Windows. If you are running a Windows OS, use the below command:
```bash
set HUGO_ENV=production
hugo
```
Or in Powershell:
```bash
$ENV:HUGO_ENV = 'production'
hugo
```
## Contributing
If you find a bug or have an idea for a feature, feel free to use the [issue tracker](https://github.com/theNewDynamic/gohugo-theme-ananke/issues) to let me know.

View file

@ -8,7 +8,6 @@
<meta name="viewport" content="width=device-width,minimum-scale=1">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
{{ hugo.Generator }}
{{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}}
{{ $production := hugo.IsProduction }}
{{ $public := not .Params.private }}
{{ if and $production $public }}