@@ -14,7 +14,7 @@ import (
14
14
15
15
func RegisterFunctions (app * golf.Application ) {
16
16
app .View .FuncMap ["Tags" ] = getAllTags
17
- app .View .FuncMap ["RecentArticles " ] = getRecentPosts
17
+ app .View .FuncMap ["RecentPosts " ] = getRecentPosts
18
18
}
19
19
20
20
func HomeHandler (ctx * golf.Context ) {
@@ -28,7 +28,7 @@ func HomeHandler(ctx *golf.Context) {
28
28
// theme := model.GetSetting("site_theme")
29
29
data := map [string ]interface {}{
30
30
"Title" : "Home" ,
31
- "Articles " : posts ,
31
+ "Posts " : posts ,
32
32
"Pager" : pager ,
33
33
}
34
34
// updateSidebarData(data)
@@ -46,7 +46,7 @@ func ContentHandler(ctx *golf.Context) {
46
46
post .Hits ++
47
47
data := map [string ]interface {}{
48
48
"Title" : post .Title ,
49
- "Article " : post ,
49
+ "Post " : post ,
50
50
"Content" : post ,
51
51
"Comments" : post .Comments ,
52
52
}
@@ -122,7 +122,7 @@ func TagHandler(ctx *golf.Context) {
122
122
posts := new (model.Posts )
123
123
pager , err := posts .GetPostsByTag (tag .Id , int64 (page ), 5 , true )
124
124
data := map [string ]interface {}{
125
- "Articles " : posts ,
125
+ "Posts " : posts ,
126
126
"Pager" : pager ,
127
127
"Tag" : tag ,
128
128
"Title" : tag .Name ,
@@ -165,7 +165,7 @@ func SiteMapHandler(ctx *golf.Context) {
165
165
"Title" : model .GetSettingValue ("site_title" ),
166
166
"Link" : baseUrl ,
167
167
"Created" : now ,
168
- "Articles " : articleMap ,
168
+ "Posts " : articleMap ,
169
169
"Navigators" : navMap ,
170
170
})
171
171
}
@@ -191,6 +191,6 @@ func RssHandler(ctx *golf.Context) {
191
191
"Link" : baseUrl ,
192
192
"Desc" : model .GetSettingValue ("site_description" ),
193
193
"Created" : utils .Now ().Format (time .RFC822 ),
194
- "Articles " : articleMap ,
194
+ "Posts " : articleMap ,
195
195
})
196
196
}
0 commit comments