diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-09-16 13:01:21 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-09-16 13:01:21 +0200 |
| commit | d545b2f1a7b578ad054bf11163120ba05e249ca8 (patch) | |
| tree | 6889b150c398d527892a691f8b1f5851522fe996 | |
| parent | 1e2760a2051bf6b11281592b4ab4b6a20cef7c78 (diff) | |
| download | blog-d545b2f1a7b578ad054bf11163120ba05e249ca8.tar.gz blog-d545b2f1a7b578ad054bf11163120ba05e249ca8.zip | |
upgrade hugo, use 'section menu for lazy bloogers'
| -rw-r--r-- | config.toml | 1 | ||||
| -rw-r--r-- | layouts/partials/header.html | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/config.toml b/config.toml index 4d7b14a..ada2ef1 100644 --- a/config.toml +++ b/config.toml @@ -5,6 +5,7 @@ title = "My shell is my home" pluralizelisttitles = false pygmentsuseclasses = true pygmentscodefences = true +sectionPagesMenu = "main" [params] email = "blog@schneefux.xyz" github = "schneefux" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8973521..262314a 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -20,9 +20,9 @@ </header> <div class="container"> <div class="row"> - {{ range $section, $p := .Site.Sections }} + {{ range .Site.Menus.main }} <div class="one-half column"> - <a class="button" href="/{{ $section }}/">{{ $section }}</a> + <a class="button" href="/{{ .URL }}/">{{ .Name }}</a> </div> {{ end }} </div> |
