From ab9bb3b3fbd27d4ce117c240588d8c4567e6d1e7 Mon Sep 17 00:00:00 2001 From: panr Date: Fri, 1 Feb 2019 15:53:23 +0100 Subject: [PATCH] Fix menu --- exampleSite/config.toml | 2 ++ layouts/partials/menu.html | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8fa56b3..7573f11 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,6 +8,7 @@ paginate = 5 contentTypeName = "post" # "light" or "dark" defaultTheme = "dark" + showMenuItems = 2 [languages] [languages.en] @@ -15,6 +16,7 @@ paginate = 5 subtitle = "A simple theme for Hugo" keywords = "" copyright = "" + menuMore = "Show more" writtenBy = "Written by" readMore = "Read more" readOtherPosts = "Read other posts" diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index f480c7a..2ff08d7 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -6,8 +6,8 @@
  • {{ .Name }}
  • {{ end }} {{ end }} - + {{ end }} {{ else }} {{ range $.Site.Menus.main }} {{ if not .HasChildren }}