fix: some bugs

This commit is contained in:
deepzz0
2021-04-30 13:06:16 +08:00
parent 7bec238f9c
commit 4ec3065f9d
6 changed files with 45 additions and 14 deletions

2
pkg/cache/cache.go vendored
View File

@@ -419,7 +419,7 @@ func (c *Cache) loadOrInit() error {
Author: blogapp.Account.Username,
Title: "关于",
Slug: "about",
CreatedAt: time.Time{},
CreatedAt: time.Time{}.AddDate(0, 0, 1),
}
err = c.InsertArticle(context.Background(), about, ArticleStartID)
if err != nil {