mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
fixed #171. RSSlink is now RSSLink (and matches existing docs).
Added backwards compatibility accessor for existing templates.
This commit is contained in:
parent
ae15ff0968
commit
f0634ec059
2 changed files with 489 additions and 485 deletions
|
@ -14,25 +14,29 @@
|
||||||
package hugolib
|
package hugolib
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"html/template"
|
"html/template"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Node struct {
|
type Node struct {
|
||||||
RSSlink template.HTML
|
RSSLink template.HTML
|
||||||
Site SiteInfo
|
Site SiteInfo
|
||||||
// layout string
|
// layout string
|
||||||
Data map[string]interface{}
|
Data map[string]interface{}
|
||||||
Title string
|
Title string
|
||||||
Description string
|
Description string
|
||||||
Keywords []string
|
Keywords []string
|
||||||
Date time.Time
|
Date time.Time
|
||||||
UrlPath
|
UrlPath
|
||||||
|
}
|
||||||
|
|
||||||
|
func (n Node) RSSlink() template.HTML {
|
||||||
|
return n.RSSLink
|
||||||
}
|
}
|
||||||
|
|
||||||
type UrlPath struct {
|
type UrlPath struct {
|
||||||
Url string
|
Url string
|
||||||
Permalink template.HTML
|
Permalink template.HTML
|
||||||
Slug string
|
Slug string
|
||||||
Section string
|
Section string
|
||||||
}
|
}
|
||||||
|
|
940
hugolib/site.go
940
hugolib/site.go
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue