mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Patrick Kollitsch
29.25.2024 e726c8b70f6a84812d998da4436765827483e602
docs: remove comments about HUGO_ENV

we use internal methods like and

Signed-off-by: Patrick Kollitsch <patrick@davids-neighbour.com>
2 files modified
26 ■■■■■ changed files
README.md 25 ●●●●● patch | view | raw | blame | history
layouts/_default/baseof.html 1 ●●●● patch | view | raw | blame | history
README.md
@@ -1,6 +1,6 @@
# Ananke, A theme for [Hugo](https://gohugo.io/), a framework for building websites
> [!WARNING]
> [!WARNING]
> Parts of this documentation, such as the sections related to the production environment, are currently a work in progress. This is due to recent changes and updates in the theme. We are actively working on providing complete and up-to-date guidance. Thank you for your patience.
The intent of this theme is to provide a solid starting place for Hugo sites with basic features and include best practices for performance, accessibility, and rapid development.
@@ -30,7 +30,6 @@
- Hugo built-in menu
- i18n
- `with`
- `HUGO_ENV`
- `first`
- `after`
- `sort`
@@ -292,28 +291,6 @@
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.
layouts/_default/baseof.html
@@ -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 }}