From 682e6b6119cc52cd6bd439f25139e4af83e63d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 16 Nov 2023 22:51:45 +0100 Subject: [PATCH] docs: simplify config doc #721 --- exampleSite/config/_default/params.toml | 5 ----- exampleSite/content/basics/configuration/_index.en.md | 3 ++- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 925831fc4d..d30159fa24 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -1,8 +1,3 @@ -# This is the file `config/_default/params.toml`. -# You can also store the below options directly in your `hugo.toml` but then -# need to contain them within the `params` key. See Hugo's documentation how -# to do this. - # If an option value is said to be not set, you can achieve the same behavior # by given it an empty string value. diff --git a/exampleSite/content/basics/configuration/_index.en.md b/exampleSite/content/basics/configuration/_index.en.md index 9a16e5e99c..599a54526e 100644 --- a/exampleSite/content/basics/configuration/_index.en.md +++ b/exampleSite/content/basics/configuration/_index.en.md @@ -10,7 +10,8 @@ On top of [Hugo global configuration](https://gohugo.io/overview/configuration/) Note that some of these parameters are explained in details in other sections of this documentation. -````toml {title="params.toml"} +````toml {title="config.toml"} +[params] {{% include "config/_default/params.toml" %}} ````