From 3e89a9ff32540e425b4a38443fb5f5915b2aee4a Mon Sep 17 00:00:00 2001 From: Yurizal Susanto Date: Sun, 21 Apr 2019 18:56:42 +0700 Subject: Change menu and example site to conform hugo theme guideline --- README.md | 17 ++++++++++++++++- exampleSite/config.toml | 17 +++++++++++++---- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 20ad307..a30fcb8 100644 --- a/README.md +++ b/README.md @@ -98,8 +98,23 @@ menu = "main" +++ ``` -`title` will be the string that is shown in navigation bar and the page's title (the title doesn't need to be the same as section's directory name). `menu = "main"` is the one who make Hugo know how identify it's need to add a new item in navigation bar. +`title` will be the string that is shown in navigation bar and the page's title (the title doesn't need to be the same as section's directory name). `menu = "main"` is the one who make Hugo know, it's need to add a new item in navigation bar. +**Alternative navigation bar:** + +Or you can configure the navigation bar in `config.toml` with the following code: +``` + +[menu] + [[menu.main]] + name = "Blog" + url = "/post/" + + [[menu.main]] + name = "About" + url = "/about" + +``` ### Other Language Manis already translated to Bahasa Indonesia. But, if you want to translate this theme to your own language, look for the example in `i18n/en.yaml` and `i18n/in.yaml`. diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d8162e0..3950d25 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -3,7 +3,7 @@ title = "Manis" theme = "manis" # Copyright notice. Note: You can use HTML tag here -copyright = "© 2018 Yurizal Susanto" +copyright = "© 2019 Yurizal Susanto" pluralizeListTitles = false # Minimum number of posts before paginate navigation show up @@ -19,6 +19,15 @@ defaultContentLanguage = "en" pygmentsCodeFences = true pygmentsUseClasses = true +[menu] + [[menu.main]] + name = "Blog" + url = "/post/" + + [[menu.main]] + name = "About" + url = "/about" + [taxonomies] tag = "tags" @@ -29,7 +38,7 @@ pygmentsUseClasses = true customCSS = [] # List of sections support disqus comments - disqusSections = [ "blog" ] + disqusSections = [ "post" ] # Site meta description description = "Sweet little Hugo's theme for personal website or blog." # Site's Tagline (Subtitle or Keyword) @@ -40,9 +49,9 @@ pygmentsUseClasses = true licenseURL = "/about/license" # Configure which section for Latest Posts - postSection = "blog" + postSection = "post" # Configure which section for Latest Works - workSection = "work" + workSection = "" # 404 Configuration head404 = "Sorry, I can't find what you want." -- cgit v1.2.3