mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
@@ -38,6 +38,10 @@ type ShortcodeWithPage struct {
|
|||||||
IsNamedParams bool
|
IsNamedParams bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (scp *ShortcodeWithPage) Site() *SiteInfo {
|
||||||
|
return scp.Page.Site
|
||||||
|
}
|
||||||
|
|
||||||
func (scp *ShortcodeWithPage) Ref(ref string) (string, error) {
|
func (scp *ShortcodeWithPage) Ref(ref string) (string, error) {
|
||||||
return scp.Page.Ref(ref)
|
return scp.Page.Ref(ref)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user