aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Scerba <alex@scerba.org>2024-09-28 12:28:02 -0400
committerAlex Scerba <alex@scerba.org>2024-09-28 12:28:02 -0400
commit92264ea6c1a27a6d834a358626a2b3004466e131 (patch)
treef6b9cd307ae10d3a5150da497bf3cf7d4915fa21
parentc8914afe41f588aead647023580c84b4e5e64f11 (diff)
Switch image class to more conventional style
-rw-r--r--cmd/http/load.go2
1 files changed, 1 insertions, 1 deletions
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