Commit 3e89a9ff authored by Yurizal Susanto's avatar Yurizal Susanto

Change menu and example site to conform hugo theme guideline

parent 9e58fa13
......@@ -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`.
......
......@@ -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."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment