Add support for Relative Permalinks

This commit is contained in:
Noah Campbell
2013-10-02 20:00:21 -04:00
parent 06da609138
commit 197aacb647
4 changed files with 14 additions and 55 deletions

View File

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