Skip to content

Instantly share code, notes, and snippets.

@lhstraathof
Created September 23, 2017 18:17
Show Gist options
  • Select an option

  • Save lhstraathof/d91a8cf72be8b8ad71b4c2ee6aad8c9e to your computer and use it in GitHub Desktop.

Select an option

Save lhstraathof/d91a8cf72be8b8ad71b4c2ee6aad8c9e to your computer and use it in GitHub Desktop.

Revisions

  1. lhstraathof created this gist Sep 23, 2017.
    20 changes: 20 additions & 0 deletions hugo_menu
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    {{ with .Site.Menus.main }}
    <nav class="menu">
    <ul class="main_menu">
    {{ range . }}
    <li class="main_menu__li"><a class="main_menu__link" href="{{ .URL | absURL }}">{{ .Name }}</a></li>
    {{ end }}
    </ul>
    </nav>
    {{ end }}




    ------------------ add this to config.toml

    # Menu links that appear on the left sidebar
    [[menu.main]]
    name = "Home"
    url = "/"
    weight = 0