diff --git a/cmd/site/html.go b/cmd/site/html.go
index 5c67ae4..912ad77 100644
--- a/cmd/site/html.go
+++ b/cmd/site/html.go
@@ -122,7 +122,7 @@ func (s *Site) showGallery(w http.ResponseWriter, r *http.Request) {
var tags string
if len(p.Tags) != 0 {
- for _, t := range p.Tags{
+ for _, t := range p.Tags {
tags = tags + " #" + strings.ReplaceAll(t, "-", "")
}
}
diff --git a/internal/blog/blog_test.go b/internal/blog/blog_test.go
index 84af435..4074636 100644
--- a/internal/blog/blog_test.go
+++ b/internal/blog/blog_test.go
@@ -40,14 +40,13 @@ func TestLoadGallery(t *testing.T) {
if art.ImageURL == "" {
t.Errorf("art %s (%s) doesn't have an image link", art.Title, art.DateString)
}
- if art.ThumbURL == "" {
+ if art.ThumbURL == "" {
t.Errorf("art %s (%s) doesn't have a thumbnail link", art.Title, art.DateString)
}
}
}
-
func (p Post) test(t *testing.T) {
if p.Title == "" {
t.Error("no post title")