1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

Create an alias from shortcode.Page.Site to shortcode.Site

Fixes #1976
This commit is contained in:
Bjørn Erik Pedersen
2016-03-14 14:10:15 +01:00
parent 734dd1c4d0
commit 0fb31e4a82

View File

@@ -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)
}