about summary refs log tree commit diff stats
path: root/cmd/build/main.go
diff options
context:
space:
mode:
authorAlan Pearce2024-04-16 19:55:21 +0200
committerAlan Pearce2024-04-16 20:49:31 +0200
commit00557c355c12458e65ae5cd9e0fa5ebfba229b3a (patch)
tree256ccd2b42d18727f880f4c2afc2bd0c4f8d263b /cmd/build/main.go
parentaa2ac7ea0c3c72c03cf6df51e04c0f149654777e (diff)
downloadwebsite-00557c355c12458e65ae5cd9e0fa5ebfba229b3a.tar.lz
website-00557c355c12458e65ae5cd9e0fa5ebfba229b3a.tar.zst
website-00557c355c12458e65ae5cd9e0fa5ebfba229b3a.zip
rename variable
Diffstat (limited to 'cmd/build/main.go')
-rw-r--r--cmd/build/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/build/main.go b/cmd/build/main.go
index ad905fd..5e19517 100644
--- a/cmd/build/main.go
+++ b/cmd/build/main.go
@@ -77,7 +77,7 @@ func readPosts(root string, inputDir string, outputDir string) ([]Post, Tags, er
 	}
 	outputReplacer := strings.NewReplacer(root, outputDir, ".md", "/index.html")
 	urlReplacer := strings.NewReplacer(root, "", ".md", "/")
-	md := goldmark.New(
+	markdown := goldmark.New(
 		goldmark.WithRendererOptions(
 			html.WithUnsafe(),
 		),
@@ -102,7 +102,7 @@ func readPosts(root string, inputDir string, outputDir string) ([]Post, Tags, er
 			}
 
 			var buf bytes.Buffer
-			if err := md.Convert(*content, &buf); err != nil {
+			if err := markdown.Convert(*content, &buf); err != nil {
 				return nil, nil, errors.WithMessage(err, "could not convert markdown content")
 			}
 			post := Post{