mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-01 22:42:45 +02:00
Now support for nested paths. Better section detection.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user