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()))