diff --git a/archetypes/blog.md b/archetypes/blog.md index 7873351..b4ad21a 100644 --- a/archetypes/blog.md +++ b/archetypes/blog.md @@ -9,5 +9,3 @@ weight: 50 images: ["{{ .Name | urlize }}.jpg"] contributors: [] --- - -{{< img src="{{ .Name | urlize }}.jpg" alt="{{ replace .Name "-" " " | title }}" caption="{{ replace .Name "-" " " | title }}" class="wide" >}} diff --git a/archetypes/docs.md b/archetypes/docs.md index bb609d2..436bd08 100644 --- a/archetypes/docs.md +++ b/archetypes/docs.md @@ -6,11 +6,9 @@ date: {{ .Date }} lastmod: {{ .Date }} draft: true images: [] -menu: +menu: docs: parent: "" weight: 999 toc: true --- - -{{< img src="{{ .Name | urlize }}.jpg" alt="{{ replace .Name "-" " " | title }}" caption="{{ replace .Name "-" " " | title }}" >}} diff --git a/content/en/tutorial/_index.md b/archetypes/docs/_index.md similarity index 77% rename from content/en/tutorial/_index.md rename to archetypes/docs/_index.md index cbc581f..3ed0540 100644 --- a/content/en/tutorial/_index.md +++ b/archetypes/docs/_index.md @@ -1,8 +1,10 @@ --- -title: "Tutorial" +title: "Docs" description: "" +lead: "" date: 2022-01-25T14:40:56+01:00 lastmod: 2022-01-25T14:40:56+01:00 draft: false images: [] +type: docs --- diff --git a/content/en/tutorial/lorem/_index.md b/archetypes/docs/lorem/_index.md similarity index 86% rename from content/en/tutorial/lorem/_index.md rename to archetypes/docs/lorem/_index.md index a837257..c1b50ae 100644 --- a/content/en/tutorial/lorem/_index.md +++ b/archetypes/docs/lorem/_index.md @@ -1,8 +1,10 @@ --- title: "Lorem" description: "" +lead: "" date: 2022-01-25T14:41:21+01:00 lastmod: 2022-01-25T14:41:21+01:00 draft: false images: [] +type: docs --- diff --git a/content/en/tutorial/lorem/ipsum/index.md b/archetypes/docs/lorem/ipsum/index.md similarity index 60% rename from content/en/tutorial/lorem/ipsum/index.md rename to archetypes/docs/lorem/ipsum/index.md index 58860ff..2cc6395 100644 --- a/content/en/tutorial/lorem/ipsum/index.md +++ b/archetypes/docs/lorem/ipsum/index.md @@ -1,8 +1,15 @@ --- title: "Ipsum" description: "" +lead: "" date: 2022-01-25T14:41:39+01:00 lastmod: 2022-01-25T14:41:39+01:00 draft: false images: [] +type: docs +menu: + {{ .Section }}: + parent: "lorem" +weight: 100 +toc: true --- diff --git a/config/_default/menus/menus.en.toml b/config/_default/menus/menus.en.toml index 260f33a..6bcf3f2 100644 --- a/config/_default/menus/menus.en.toml +++ b/config/_default/menus/menus.en.toml @@ -10,11 +10,23 @@ identifier = "help" url = "/docs/help/" -[[docs]] +# [[docs]] +# name = "Lorem" +# weight = 70 +# identifier = "lorem" +# url = "/docs/lorem/" + +[[guide]] name = "Lorem" - weight = 70 + weight = 10 identifier = "lorem" - url = "/docs/lorem/" + url = "/guide/lorem/" + +[[tutorial]] + name = "Lorem" + weight = 10 + identifier = "lorem" + url = "/tutorial/lorem/" [[main]] name = "Docs" @@ -22,6 +34,11 @@ # url = "/docs/1.0/prologue/introduction/" weight = 10 +# [[main]] +# name = "Tutorial" +# url = "/tutorial/lorem/ipsum/" +# weight = 15 + [[main]] name = "Blog" url = "/blog/" diff --git a/config/_default/params.toml b/config/_default/params.toml index 09fa32a..b7451a0 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -92,4 +92,3 @@ lastMod = false [menu.section] auto = true collapsibleSidebar = true - mainSections = ["docs"] diff --git a/layouts/docs/list.html b/layouts/docs/list.html index c860531..4775e0c 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -2,7 +2,7 @@