From 92264ea6c1a27a6d834a358626a2b3004466e131 Mon Sep 17 00:00:00 2001
From: Alex Scerba <alex@scerba.org>
Date: Sat, 28 Sep 2024 12:28:02 -0400
Subject: Switch image class to more conventional style

---
 cmd/http/load.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'cmd/http/load.go')

diff --git a/cmd/http/load.go b/cmd/http/load.go
index d63d7ce..8a623ab 100644
--- a/cmd/http/load.go
+++ b/cmd/http/load.go
@@ -85,7 +85,7 @@ func (app *application) readFile(location string) (p *Post, err error) {
 	}
 
 	// thumbnail image
-	imagePattern := regexp.MustCompile(`<img src="(.+)" class="mainImage"( alt="(.+)")* />`)
+	imagePattern := regexp.MustCompile(`<img src="(.+)" class="main-image"( alt="(.+)")* />`)
 	matchingImage := imagePattern.FindStringSubmatch(string(fileContent))
 
 	var image string
-- 
cgit v1.2.3