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-03-20 14:50:09 +0300
committerYauhen Shulitski <jsnjack@gmail.com>2018-03-20 14:50:09 +0300
commit0ab00d1a7f9a854ee2673f9b50ebd10f6ab1dc6d (patch)
tree0b5a7ce237e3d599971ad8b00d8ed79f6e72ecb5
parent18d79962a03bbab4b73ce09d373bb472e47b2d45 (diff)
:p: Add support for sections in anchor shortcode
-rw-r--r--layouts/shortcodes/anchor.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/shortcodes/anchor.html b/layouts/shortcodes/anchor.html
index 7cb4dcd..03949bc 100644
--- a/layouts/shortcodes/anchor.html
+++ b/layouts/shortcodes/anchor.html
@@ -2,3 +2,6 @@
{{ with .Site.GetPage "page" $page_path }}
#{{ .Params.anchor }}
{{ end -}}
+{{ with .Site.GetPage "section" $page_path }}
+ #{{ .Params.anchor }}
+{{ end -}}