mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Add support for Relative Permalinks
This commit is contained in:
@@ -551,7 +551,7 @@ func (s *Site) render(d interface{}, out string, layouts ...string) (err error)
|
||||
section := ""
|
||||
page, ok := d.(*Page)
|
||||
if ok {
|
||||
section, _ = page.Permalink()
|
||||
section, _ = page.RelPermalink()
|
||||
}
|
||||
|
||||
fmt.Println("Section is:", section)
|
||||
|
Reference in New Issue
Block a user