summaryrefslogtreecommitdiffstats
path: root/hugolib/shortcode.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/shortcode.go')
-rw-r--r--hugolib/shortcode.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/shortcode.go b/hugolib/shortcode.go
index 578093210..b221ff8a7 100644
--- a/hugolib/shortcode.go
+++ b/hugolib/shortcode.go
@@ -38,6 +38,10 @@ type ShortcodeWithPage struct {
IsNamedParams bool
}
+func (scp *ShortcodeWithPage) Site() *SiteInfo {
+ return scp.Page.Site
+}
+
func (scp *ShortcodeWithPage) Ref(ref string) (string, error) {
return scp.Page.Ref(ref)
}