diff --git a/config/_default/menus/menus.en.toml b/config/_default/menus/menus.en.toml index 935d480..260f33a 100644 --- a/config/_default/menus/menus.en.toml +++ b/config/_default/menus/menus.en.toml @@ -10,6 +10,12 @@ identifier = "help" url = "/docs/help/" +[[docs]] + name = "Lorem" + weight = 70 + identifier = "lorem" + url = "/docs/lorem/" + [[main]] name = "Docs" url = "/docs/prologue/introduction/" diff --git a/config/_default/params.toml b/config/_default/params.toml index b9f36ca..d7068be 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -84,6 +84,11 @@ lastMod = false breadCrumb = false highLight = true kaTex = false - collapsibleSidebar = true multilingualMode = false docsVersioning = false + +[menu] + [menu.section] + auto = true + collapsibleSidebar = true + mainSections = ["docs"] diff --git a/content/en/docs/lorem/_index.md b/content/en/docs/lorem/_index.md new file mode 100644 index 0000000..86fcd8f --- /dev/null +++ b/content/en/docs/lorem/_index.md @@ -0,0 +1,10 @@ +--- +title: "Lorem" +description: "" +lead: "" +date: 2022-01-18T19:58:14+01:00 +lastmod: 2022-01-18T19:58:14+01:00 +draft: true +images: [] +toc: true +--- diff --git a/content/en/docs/lorem/ipsum/_index.md b/content/en/docs/lorem/ipsum/_index.md new file mode 100644 index 0000000..e575fc5 --- /dev/null +++ b/content/en/docs/lorem/ipsum/_index.md @@ -0,0 +1,15 @@ +--- +title: "Ipsum" +description: "" +lead: "" +date: 2022-01-18T20:00:32+01:00 +lastmod: 2022-01-18T20:00:32+01:00 +draft: false +images: [] +menu: + docs: + parent: "lorem" + identifier: "ipsum" +weight: 999 +toc: true +--- diff --git a/content/en/docs/lorem/ipsum/amet/_index.md b/content/en/docs/lorem/ipsum/amet/_index.md new file mode 100644 index 0000000..dbbeabd --- /dev/null +++ b/content/en/docs/lorem/ipsum/amet/_index.md @@ -0,0 +1,15 @@ +--- +title: "Amet" +description: "" +lead: "" +date: 2022-01-18T20:07:56+01:00 +lastmod: 2022-01-18T20:07:56+01:00 +draft: false +images: [] +menu: + docs: + parent: "ipsum" + identifier: "amet" +weight: 999 +toc: true +--- diff --git a/content/en/docs/lorem/ipsum/amet/consectetur/index.md b/content/en/docs/lorem/ipsum/amet/consectetur/index.md new file mode 100644 index 0000000..23771e3 --- /dev/null +++ b/content/en/docs/lorem/ipsum/amet/consectetur/index.md @@ -0,0 +1,14 @@ +--- +title: "Consectetur" +description: "" +lead: "" +date: 2022-01-18T20:17:32+01:00 +lastmod: 2022-01-18T20:17:32+01:00 +draft: false +images: [] +menu: + docs: + parent: "amet" +weight: 730 +toc: true +--- diff --git a/content/en/docs/lorem/ipsum/dolor/index.md b/content/en/docs/lorem/ipsum/dolor/index.md new file mode 100644 index 0000000..a744e72 --- /dev/null +++ b/content/en/docs/lorem/ipsum/dolor/index.md @@ -0,0 +1,14 @@ +--- +title: "Dolor" +description: "" +lead: "" +date: 2022-01-18T20:01:45+01:00 +lastmod: 2022-01-18T20:01:45+01:00 +draft: false +images: [] +menu: + docs: + parent: "ipsum" +weight: 700 +toc: true +--- diff --git a/content/en/docs/lorem/ipsum/sit/index.md b/content/en/docs/lorem/ipsum/sit/index.md new file mode 100644 index 0000000..e4c84e4 --- /dev/null +++ b/content/en/docs/lorem/ipsum/sit/index.md @@ -0,0 +1,14 @@ +--- +title: "Sit" +description: "" +lead: "" +date: 2022-01-18T20:05:19+01:00 +lastmod: 2022-01-18T20:05:19+01:00 +draft: false +images: [] +menu: + docs: + parent: "ipsum" +weight: 710 +toc: true +--- diff --git a/content/en/tutorial/_index.md b/content/en/tutorial/_index.md new file mode 100644 index 0000000..cbc581f --- /dev/null +++ b/content/en/tutorial/_index.md @@ -0,0 +1,8 @@ +--- +title: "Tutorial" +description: "" +date: 2022-01-25T14:40:56+01:00 +lastmod: 2022-01-25T14:40:56+01:00 +draft: false +images: [] +--- diff --git a/content/en/tutorial/lorem/_index.md b/content/en/tutorial/lorem/_index.md new file mode 100644 index 0000000..a837257 --- /dev/null +++ b/content/en/tutorial/lorem/_index.md @@ -0,0 +1,8 @@ +--- +title: "Lorem" +description: "" +date: 2022-01-25T14:41:21+01:00 +lastmod: 2022-01-25T14:41:21+01:00 +draft: false +images: [] +--- diff --git a/content/en/tutorial/lorem/ipsum/index.md b/content/en/tutorial/lorem/ipsum/index.md new file mode 100644 index 0000000..58860ff --- /dev/null +++ b/content/en/tutorial/lorem/ipsum/index.md @@ -0,0 +1,8 @@ +--- +title: "Ipsum" +description: "" +date: 2022-01-25T14:41:39+01:00 +lastmod: 2022-01-25T14:41:39+01:00 +draft: false +images: [] +--- diff --git a/layouts/partials/sidebar/auto-collapsible-menu.html b/layouts/partials/sidebar/auto-collapsible-menu.html new file mode 100644 index 0000000..202189f --- /dev/null +++ b/layouts/partials/sidebar/auto-collapsible-menu.html @@ -0,0 +1,56 @@ + +
\ No newline at end of file diff --git a/layouts/partials/sidebar/auto-default-menu.html b/layouts/partials/sidebar/auto-default-menu.html new file mode 100644 index 0000000..f7519fe --- /dev/null +++ b/layouts/partials/sidebar/auto-default-menu.html @@ -0,0 +1,36 @@ + +{{ $currentPage := . -}} +{{ range (where .Site.Sections "Section" "in" site.Params.menu.section.mainSections) }} + {{ range .Sections.Reverse }} + {{ $active := in $currentPage.RelPermalink .RelPermalink }} +