mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-13 01:42:27 +08:00
update
This commit is contained in:
13
xml.go
13
xml.go
@@ -38,12 +38,11 @@ func doFeed() {
|
||||
_, _, artcs := PageList(1, FEED_COUNT)
|
||||
buildDate := time.Now()
|
||||
params := map[string]interface{}{
|
||||
"Title": Ei.BTitle,
|
||||
"SubTitle": Ei.SubTitle,
|
||||
"Domain": runmode.Domain,
|
||||
"Enablehttps": runmode.EnableHttps,
|
||||
"BuildDate": buildDate.Format(time.RFC1123Z),
|
||||
"Artcs": artcs,
|
||||
"Title": Ei.BTitle,
|
||||
"SubTitle": Ei.SubTitle,
|
||||
"Domain": runmode.Domain,
|
||||
"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)
|
||||
@@ -66,7 +65,7 @@ func doSitemap() {
|
||||
logd.Error("not found sitemapTpl.")
|
||||
return
|
||||
}
|
||||
params := map[string]interface{}{"Artcs": Ei.Articles, "Domain": runmode.Domain, "Enablehttps": runmode.EnableHttps}
|
||||
params := map[string]interface{}{"Artcs": Ei.Articles, "Domain": runmode.Domain}
|
||||
f, err := os.OpenFile("static/sitemap.xml", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm)
|
||||
if err != nil {
|
||||
logd.Error(err)
|
||||
|
||||
Reference in New Issue
Block a user