diff options
author | parsiya@gmail.com <parsiya@gmail.com> | 2016-04-10 03:58:58 +0300 |
---|---|---|
committer | parsiya@gmail.com <parsiya@gmail.com> | 2016-04-10 03:58:58 +0300 |
commit | a40d7c6a01439ff0592747fd24313c45d955559d (patch) | |
tree | 09e03df48de4cb779acc32686fc0f6a80457aa7b /sample-config.toml | |
parent | 0b68aa05b5fc847ccc0474be05e338ab1577d413 (diff) |
Add optional sidebar menu. Fixes #7
Diffstat (limited to 'sample-config.toml')
-rw-r--r-- | sample-config.toml | 24 |
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 |