From d189ffc36d4643d4a99731ad3bc70d923220a7cb Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Thu, 25 Aug 2022 13:17:51 +0200 Subject: [PATCH] [web] Fixed instructions for creating new pages with `hugo new`. --- web/archetypes/default.md | 4 ++-- .../docs/devguide/development-workflows/web-docs/index.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/archetypes/default.md b/web/archetypes/default.md index 932cd75f3a4..ef75f766784 100644 --- a/web/archetypes/default.md +++ b/web/archetypes/default.md @@ -1,4 +1,4 @@ +++ -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} +title = "{{ replace .Name "-" " " | title }}" +date = {{ .Date }} +++ diff --git a/web/content/docs/devguide/development-workflows/web-docs/index.md b/web/content/docs/devguide/development-workflows/web-docs/index.md index eab5c93ea65..5bd02194928 100644 --- a/web/content/docs/devguide/development-workflows/web-docs/index.md +++ b/web/content/docs/devguide/development-workflows/web-docs/index.md @@ -39,7 +39,7 @@ As you make modifications to the site it will be rebuild and the page in the bro By using `hugo new` you can create a new page with the correct frontmatter for that kind of page: ```bash -hugo new docs/benchmarks/elliptic/groundwater-flow-dirichlet/index.md +hugo new --kind benchmark docs/benchmarks/elliptic/groundwater-flow-dirichlet/index.md ``` - path is relative to `content/` and determines the URL of the page -- GitLab