Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yursan9/manis-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYurizal Susanto <yursan9@pm.me>2019-04-21 14:56:42 +0300
committerYurizal Susanto <yursan9@pm.me>2019-04-21 14:56:42 +0300
commit3e89a9ff32540e425b4a38443fb5f5915b2aee4a (patch)
tree3bc0cbdcc50f32c6965a87cc5e8c5c39b0386bd5
parent9e58fa1346e48890b20002d94183e1e332a2e612 (diff)
Change menu and example site to conform hugo theme guideline
-rw-r--r--README.md17
-rw-r--r--exampleSite/config.toml17
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 = "&copy; 2018 Yurizal Susanto"
+copyright = "&copy; 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."