mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
superfeed
This commit is contained in:
11
xml.go
11
xml.go
@@ -39,11 +39,12 @@ func doFeed() {
|
|||||||
_, _, artcs := PageList(1, FEED_COUNT)
|
_, _, artcs := PageList(1, FEED_COUNT)
|
||||||
buildDate := time.Now()
|
buildDate := time.Now()
|
||||||
params := map[string]interface{}{
|
params := map[string]interface{}{
|
||||||
"Title": Ei.BTitle,
|
"Title": Ei.BTitle,
|
||||||
"SubTitle": Ei.SubTitle,
|
"SubTitle": Ei.SubTitle,
|
||||||
"Domain": setting.Conf.Mode.Domain,
|
"Domain": setting.Conf.Mode.Domain,
|
||||||
"BuildDate": buildDate.Format(time.RFC1123Z),
|
"Superfeedr": setting.Conf.Superfeedr,
|
||||||
"Artcs": artcs,
|
"BuildDate": buildDate.Format(time.RFC1123Z),
|
||||||
|
"Artcs": artcs,
|
||||||
}
|
}
|
||||||
|
|
||||||
f, err := os.OpenFile("static/feed.xml", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm)
|
f, err := os.OpenFile("static/feed.xml", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm)
|
||||||
|
|||||||
Reference in New Issue
Block a user