diff --git a/README.md b/README.md index 928acac..7e55b5e 100644 --- a/README.md +++ b/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 @@ 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. diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 30744c4..ebc1ccd 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -8,7 +8,6 @@ {{ 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 }}