Adding support for aliases (redirects)

This commit is contained in:
spf13
2013-08-10 15:35:34 +01:00
parent 45ce6e2b30
commit d5518c0966
7 changed files with 64 additions and 65 deletions

View File

@@ -99,21 +99,9 @@ func (p *Page) setSection() {
return
}
//section := x[len(x)-2]
if section := x[len(x)-2]; section != "content" {
p.Section = section
}
//c := p.Site.Config
//systemDirs := map[string]bool{
//c.ContentDir: true,
//c.StaticDir: true,
//c.LayoutDir: true,
//}
//if !systemDirs[section] && !p.Redirect {
//p.Section = section
//}
}
func (page *Page) Type() string {