diff --git a/web/README.md b/web/README.md index 67d54effcae7a10e7366a7909f1d959e0a85b72d..2c6a7fbe62cc2bfbe7fd7ea96f2fe7d4bd6102a0 100644 --- a/web/README.md +++ b/web/README.md @@ -59,6 +59,29 @@ hugo new --kind benchmark docs/benchmarks/elliptic/groundwater-flow-dirichlet.md - `--kind` is one the `archetypes/*` - path is relative to `content/` and determines the URL of the page +### Setup navigation for a page + +The are submenus (shown in the left sidebar) for specific sections such as for benchmarks. The submenus consist of groups (e.g. *Elliptic*) and page entries. Groups are defined in `config.toml`: + +```toml +[[menu.benchmarks]] + name = "Elliptic" + identifier = "elliptic" + weight = 1 +``` + +To add your page to a group as an entry add the following frontmatter: + +```toml +weight = 101 + +[menu] + [menu.benchmarks] + parent = "elliptic" +``` + +`weight` specifies the order of groups and pages in ascending order (top -> down). + ### Images Use shortcode `img`: diff --git a/web/content/docs/benchmarks/elliptic/groundwater-flow-dirichlet.md b/web/content/docs/benchmarks/elliptic/groundwater-flow-dirichlet.md index 27f709c284dbb8357d214767d4b2d65005e615e4..0d1220ecd3c115184e89242ebdb3f49d0c7d5852 100644 --- a/web/content/docs/benchmarks/elliptic/groundwater-flow-dirichlet.md +++ b/web/content/docs/benchmarks/elliptic/groundwater-flow-dirichlet.md @@ -9,7 +9,6 @@ aliases = [ "/docs/benchmarks/" ] # First benchmark page [menu] [menu.benchmarks] - # weight = 101 parent = "elliptic" +++