about summary refs log tree commit diff stats
path: root/internal/builder/posts.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-22 18:03:22 +0200
committerAlan Pearce2024-05-22 18:03:22 +0200
commitea098ab11740fe4783694ff0122738b30e0c342f (patch)
treebcd50fdb6fc7ce9730c758f709aa6bf29a763ea9 /internal/builder/posts.go
parentaef028263229d8acda28b8e657413f7e9c187833 (diff)
downloadwebsite-ea098ab11740fe4783694ff0122738b30e0c342f.tar.lz
website-ea098ab11740fe4783694ff0122738b30e0c342f.tar.zst
website-ea098ab11740fe4783694ff0122738b30e0c342f.zip
refactor: lint with golangci-lint
Diffstat (limited to 'internal/builder/posts.go')
-rw-r--r--internal/builder/posts.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/builder/posts.go b/internal/builder/posts.go
index 954e259..cfe4e6f 100644
--- a/internal/builder/posts.go
+++ b/internal/builder/posts.go
@@ -73,6 +73,7 @@ func renderMarkdown(content []byte) (string, error) {
 	if err := markdown.Convert(content, &buf); err != nil {
 		return "", errors.WithMessage(err, "could not convert markdown content")
 	}
+
 	return buf.String(), nil
 }
 
@@ -121,5 +122,6 @@ func readPosts(root string, inputDir string, outputDir string) ([]Post, Tags, er
 	slices.SortFunc(posts, func(a, b Post) int {
 		return b.Date.Compare(a.Date)
 	})
+
 	return posts, tags, nil
 }