diff options
author | Yauhen Shulitski <jsnjack@gmail.com> | 2018-08-11 00:12:29 +0300 |
---|---|---|
committer | Yauhen Shulitski <jsnjack@gmail.com> | 2018-08-11 00:12:29 +0300 |
commit | d3dc56d23e0371199ce496ebc5ec8bf89ac1ab62 (patch) | |
tree | 2427151957c92958fa1d6dcb8652f547f36d0c8c | |
parent | 25cb2f4650d7329ca07aea138ad8c145468f3212 (diff) |
:m: Update theme to support hugo >0.45
Updated anchor shortcode. See https://gohugo.io/functions/getpage/
Fixes https://github.com/jsnjack/kraiklyn/issues/6
-rw-r--r-- | layouts/shortcodes/anchor.html | 5 | ||||
-rw-r--r-- | theme.toml | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/layouts/shortcodes/anchor.html b/layouts/shortcodes/anchor.html index 03949bc..c4d1670 100644 --- a/layouts/shortcodes/anchor.html +++ b/layouts/shortcodes/anchor.html @@ -1,7 +1,4 @@ {{ $page_path := .Get 0 -}} -{{ with .Site.GetPage "page" $page_path }} - #{{ .Params.anchor }} -{{ end -}} -{{ with .Site.GetPage "section" $page_path }} +{{ with .Site.GetPage $page_path }} #{{ .Params.anchor }} {{ end -}} @@ -8,7 +8,7 @@ description = "A theme for a simple one page documentation" homepage = "https://github.com/jsnjack/kraiklyn/" tags = ["one page", "docs", "documentation", "simple", "minimalistic"] features = [] -min_version = "0.33" +min_version = "0.45" [author] name = "Yauhen Shulitski" |