Hugo Dark Theme Site Generator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long. 1.7KB

+++ title = “Section Menu” description = “Display a contextual site-wide navigation with links.” categories = [“navigation”] tags = [“links”, “taxonomy”] features = [“code highlighter”, “snippets”, “section menu”] notes = [ “review ‘fuzzy-search’ examples if modified” ] +++

After Dark uses Hugo’s {{< external href=“” text=“Section Menu for “Lazy” Bloggers” />}} to create a site-wide navigational aid. The section menu is disabled by default.

{{< hackcss-card header=“Interactive Example” >}} {{< navmenu >}} {{< /hackcss-card >}}

Enable it by toggling the show_menu setting in your site configuration:

  show_menu = false # set to `true` to enable section menu

With the menu enabled navigation links will begin appearing automatically on a per-section basis whenever {{< external href=“” text=“Published Content” />}} is available within that section.

Link to stand-alone pages from {{< external href=“” text=“Front Matter” />}} by specifying menu = "main":

title = "About"
menu = "main"

Adjust link names and menu position by adding the following code block to your {{< external href=“” text=“Site Configuration” />}} and modifying it to meet your needs:

  name = "Home"
  weight = 1
  identifier = "home"
  url = "/"

  name = "Posts"
  weight = 2
  identifier = "post"
  url = "/post/"

See {{< external href=“” text=“Menus in Hugo” />}} for additional information.