mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
734dd1c4d0
commit
0fb31e4a82
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue