mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 14:16:06 +00:00
fixed #171. RSSlink is now RSSLink (and matches existing docs).
Added backwards compatibility accessor for existing templates.
This commit is contained in:
1 parent
ae15ff0968
commit
f0634ec059
2 files changed
+489
-485
No files matched your search
+19
-15
@@ -14,25 +14,29 @@
|
||||
package hugolib
|
||||
|
||||
import (
|
||||
"html/template"
|
||||
"time"
|
||||
"html/template"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Node struct {
|
||||
RSSlink template.HTML
|
||||
Site SiteInfo
|
||||
// layout string
|
||||
Data map[string]interface{}
|
||||
Title string
|
||||
Description string
|
||||
Keywords []string
|
||||
Date time.Time
|
||||
UrlPath
|
||||
RSSLink template.HTML
|
||||
Site SiteInfo
|
||||
// layout string
|
||||
Data map[string]interface{}
|
||||
Title string
|
||||
Description string
|
||||
Keywords []string
|
||||
Date time.Time
|
||||
UrlPath
|
||||
}
|
||||
|
||||
func (n Node) RSSlink() template.HTML {
|
||||
return n.RSSLink
|
||||
}
|
||||
|
||||
type UrlPath struct {
|
||||
Url string
|
||||
Permalink template.HTML
|
||||
Slug string
|
||||
Section string
|
||||
Url string
|
||||
Permalink template.HTML
|
||||
Slug string
|
||||
Section string
|
||||
}
|
||||
+470
-470
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user