summaryrefslogtreecommitdiffstats
path: root/hugolib/shortcode.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-07-17 21:44:08 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-07-18 00:07:20 +0200
commitd741064bebe2f4663a7ba12556dccc3dffe08629 (patch)
tree56d651776e06dac70928af84718d52e1af38cb7b /hugolib/shortcode.go
parent3eb313fef495a39731dafa6bddbf77760090230d (diff)
Add optional lang as argument to rel/relref
Fixes #4956
Diffstat (limited to 'hugolib/shortcode.go')
-rw-r--r--hugolib/shortcode.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go
index 275293771..8ad539935 100644
--- a/hugolib/shortcode.go
+++ b/hugolib/shortcode.go
@@ -55,13 +55,13 @@ func (scp *ShortcodeWithPage) Site() *SiteInfo {
}
// Ref is a shortcut to the Ref method on Page.
-func (scp *ShortcodeWithPage) Ref(ref string) (string, error) {
- return scp.Page.Ref(ref)
+func (scp *ShortcodeWithPage) Ref(args map[string]interface{}) (string, error) {
+ return scp.Page.Ref(args)
}
// RelRef is a shortcut to the RelRef method on Page.
-func (scp *ShortcodeWithPage) RelRef(ref string) (string, error) {
- return scp.Page.RelRef(ref)
+func (scp *ShortcodeWithPage) RelRef(args map[string]interface{}) (string, error) {
+ return scp.Page.RelRef(args)
}
// Scratch returns a scratch-pad scoped for this shortcode. This can be used