Now support for nested paths. Better section detection.

This commit is contained in:
spf13
2013-08-13 19:39:24 -04:00
parent 6e27239485
commit b4bcc591e4
3 changed files with 72 additions and 56 deletions

View File

@@ -19,18 +19,23 @@ import (
)
type Node struct {
Url string
Permalink template.HTML
RSSlink template.HTML
Site SiteInfo
layout string
Data map[string]interface{}
Section string
Slug string
Title string
Description string
Keywords []string
Date time.Time
UrlPath
}
type UrlPath struct {
Url string
Permalink template.HTML
Slug string
Section string
Path string
}
func (n *Node) GetSection() string {