From 79ac0243128495a657da96e96d3d8724cd4f7a41 Mon Sep 17 00:00:00 2001 From: deepzz0 Date: Fri, 7 May 2021 16:28:26 +0800 Subject: [PATCH] fix: archive page style --- pkg/cache/cache.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/cache/cache.go b/pkg/cache/cache.go index 3833f2a..78ec3d6 100644 --- a/pkg/cache/cache.go +++ b/pkg/cache/cache.go @@ -541,7 +541,7 @@ func (c *Cache) regeneratePages() { for i, article := range archive.Articles { createdAt := article.CreatedAt.In(tools.TimeLocation) if i == 0 && gt12Month { - str := fmt.Sprintf("* *[%s](/post/%s.html) (%s)\n", + str := fmt.Sprintf("* *[%s](/post/%s.html) (%s)*\n", article.Title, article.Slug, createdAt.Format("Jan 02, 2006")) buf.WriteString(str) } else { @@ -549,7 +549,6 @@ func (c *Cache) regeneratePages() { article.Title, article.Slug, createdAt.Format("Jan 02, 2006")) buf.WriteString(str) } - buf.WriteByte('\n') } } c.PageArchives = string(render.RenderPage(buf.Bytes()))