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

github.com/parsiya/Hugo-Octopress.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsiya@gmail.com <parsiya@gmail.com>2016-04-10 03:58:58 +0300
committerparsiya@gmail.com <parsiya@gmail.com>2016-04-10 03:58:58 +0300
commita40d7c6a01439ff0592747fd24313c45d955559d (patch)
tree09e03df48de4cb779acc32686fc0f6a80457aa7b /sample-config.toml
parent0b68aa05b5fc847ccc0474be05e338ab1577d413 (diff)
Add optional sidebar menu. Fixes #7
Diffstat (limited to 'sample-config.toml')
-rw-r--r--sample-config.toml24
1 files changed, 24 insertions, 0 deletions
diff --git a/sample-config.toml b/sample-config.toml
index ba66db2..a90c66a 100644
--- a/sample-config.toml
+++ b/sample-config.toml
@@ -44,6 +44,25 @@ post = "/blog/:year-:month-:day-:title/" # change the post URL to look like the
Name = "This theme on Github"
URL = "https://www.github.com/parsiya/hugo-octopress"
+
+# sidebar menus
+# enable with "sidebar_menu_enabled = true" in [oarams]
+# header text is "sidebar_menu_header" in [params]
+[[menu.sidebar]]
+ Name = "Google"
+ URL = "https://www.google.com"
+ weight = 0
+
+[[menu.sidebar]]
+ Name = "Hugo"
+ URL = "/categories/hugo/"
+ weight = 1
+
+[[menu.sidebar]]
+ Name = "Homepage"
+ URL = "/"
+ weight = 2
+
[params]
# number of recent posts that will be shown in the sidebar - default is 5
@@ -52,6 +71,11 @@ post = "/blog/:year-:month-:day-:title/" # change the post URL to look like the
# sidebar customization - passed to markdownify
sidebar_header = "Sidebar Header"
+ # sidebar menu
+ # if true will add a sidebar menu between sidebar text and recent posts
+ sidebar_menu_enabled = true
+ sidebar_menu_header = "Sidebar Links"
+
# sidebar text supports markdown
# new lines can be added with </br> or normal markdown (two spaces at the end of line or two new lines).
# when adding two new lines, remember to remove the indentation otherwise the new line will be treated as a codeblock