diff options
author | Yauhen Shulitski <jsnjack@gmail.com> | 2018-03-20 14:50:09 +0300 |
---|---|---|
committer | Yauhen Shulitski <jsnjack@gmail.com> | 2018-03-20 14:50:09 +0300 |
commit | 0ab00d1a7f9a854ee2673f9b50ebd10f6ab1dc6d (patch) | |
tree | 0b5a7ce237e3d599971ad8b00d8ed79f6e72ecb5 | |
parent | 18d79962a03bbab4b73ce09d373bb472e47b2d45 (diff) |
:p: Add support for sections in anchor shortcode
-rw-r--r-- | layouts/shortcodes/anchor.html | 3 |
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 -}} |