From 0c7cc08ad4bcb911a7dd8e3c17eb4e194c1447e2 Mon Sep 17 00:00:00 2001 From: thinkpadmaster <a.scerba02@gmail.com> Date: Fri, 14 Jul 2023 00:47:00 -0500 Subject: Update to new image syntax --- load.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/load.go b/load.go index b6866e3..45be451 100644 --- a/load.go +++ b/load.go @@ -110,7 +110,7 @@ func (app *application) readFile(location string) (p *Post, err error) { } // thumbnail image - imagePattern := regexp.MustCompile(`<img class="mainImage" src="(.+)"( alt="(.+)")*>`) + imagePattern := regexp.MustCompile(`<img src="(.+)" class="mainImage"( alt="(.+)")* />`) imageMatching := imagePattern.FindStringSubmatch(string(fileContent)) var image string -- cgit v1.2.3