mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-16 19:32:27 +08:00
update
This commit is contained in:
2
front.go
2
front.go
@@ -132,6 +132,8 @@ func HandleArticlePage(c *gin.Context) {
|
||||
h["Copyright"] = Ei.Copyright
|
||||
if !artc.UpdateTime.IsZero() {
|
||||
h["Days"] = int(time.Now().Sub(artc.UpdateTime).Hours()) / 24
|
||||
} else {
|
||||
h["Days"] = int(time.Now().Sub(artc.CreateTime).Hours()) / 24
|
||||
}
|
||||
if artc.SerieID > 0 {
|
||||
h["Serie"] = QuerySerie(artc.SerieID)
|
||||
|
||||
Reference in New Issue
Block a user