From e726c8b70f6a84812d998da4436765827483e602 Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <patrick@davids-neighbour.com>
Date: Tue, 29 Oct 2024 07:25:37 +0000
Subject: [PATCH] docs: remove comments about HUGO_ENV

---
 layouts/_default/baseof.html |    1 -
 README.md                    |   25 +------------------------
 2 files changed, 1 insertions(+), 25 deletions(-)

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 @@
 - 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.
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 @@
     <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 }}

--
Gitblit v1.10.0