From d193a32b7cbf96e777e4af8a9edcaf27ab4f4020 Mon Sep 17 00:00:00 2001 From: Andreas Hnida Date: Thu, 18 Apr 2024 14:18:15 +0200 Subject: [PATCH] update deployment environment in params.toml and hugo.toml clarify usage and content update instructions --- config/_default/params.toml | 4 ++++ hugo.toml | 4 ---- readme.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index a9d6c28..e394fb8 100755 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -1,3 +1,7 @@ +########################### Deployment ############################# +# set to "development" or "production". This deploys the site to the correct environment and sets the robot.txt to disallow all pages when in development mode. +environment = "development" + #################### default parameters ################################ # favicon module: https://github.com/gethugothemes/hugo-modules/tree/master/images#favicon-implementation favicon = "images/verua_fav.png" diff --git a/hugo.toml b/hugo.toml index 5692795..113cddb 100755 --- a/hugo.toml +++ b/hugo.toml @@ -18,10 +18,6 @@ disableLanguages = ["en"] hasCJKLanguage = false # If hasCJKLanguage true, auto-detect Chinese/Japanese/Korean Languages in the content. see: https://gohugo.io/getting-started/configuration/#hascjklanguage enableRobotsTXT = true -########################### Deployment ############################# -# set to "development" or "production". This deploys the site to the correct environment and sets the robot.txt to disallow all pages when in development mode. -[params] -environment = "development" ########################### Services ############################# [services] diff --git a/readme.md b/readme.md index 55d4f1a..284d9ff 100755 --- a/readme.md +++ b/readme.md @@ -20,7 +20,7 @@ Production site: ve ## Usage / Update Content -To use the theme, you need to clone the repository, update your content in the content folder and push your changes to the main branch. +To use the theme, and to update your content, you need to clone the repository, update your content in the content folder and push your changes to the main branch which will trigger a deployment. ```bash # Clone the repository