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

github.com/jsnjack/kraiklyn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYauhen Shulitski <jsnjack@gmail.com>2018-08-11 00:12:29 +0300
committerYauhen Shulitski <jsnjack@gmail.com>2018-08-11 00:12:29 +0300
commitd3dc56d23e0371199ce496ebc5ec8bf89ac1ab62 (patch)
tree2427151957c92958fa1d6dcb8652f547f36d0c8c
parent25cb2f4650d7329ca07aea138ad8c145468f3212 (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.html5
-rw-r--r--theme.toml2
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 -}}
diff --git a/theme.toml b/theme.toml
index ee3f53e..229ddf3 100644
--- a/theme.toml
+++ b/theme.toml
@@ -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"