From 15526a60fa71c2990236053456529c02783558ca Mon Sep 17 00:00:00 2001 From: schuster-rainer Date: Wed, 8 Mar 2017 21:20:37 +0100 Subject: Refactor exampleSite to hugo menu --- exampleSite/config.toml | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 6018dff..480a272 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -12,6 +12,29 @@ googleAnalytics = "" # Define the number of posts per page paginate = 10 +[menu] + +[[menu.main]] + name = "Home" + url = "/" + weight = 1 + +[[menu.main]] + name = "Blog" + url = "/blog/" + weight = 2 + +[[menu.main]] + name = "FAQ" + identifier = "faq" + url = "/faq/" + weight = 3 + +[[menu.main]] + name = "Contact" + url = "/contact/" + weight = 4 + [params] viewMorePostLink = "/blog/" author = "DevCows" @@ -59,26 +82,6 @@ paginate = 10 [Permalinks] blog = "/blog/:year/:month/:day/:filename/" -[[params.menu]] - name = "Home" - url = "/" - weight = 1 - -[[params.menu]] - name = "Blog" - url = "/blog/" - weight = 2 - -[[params.menu]] - name = "FAQ" - url = "/faq/" - weight = 3 - -[[params.menu]] - name = "Contact" - url = "/contact/" - weight = 4 - # Enable and disable widgets for the right sidebar [params.widgets] categories = true -- cgit v1.2.3