diff options
-rw-r--r-- | layouts/_default/single.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 322887e..7a74d26 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -38,7 +38,7 @@ {{ end }} <!-- end featured_image--> - {{ $reAltIn := "<img src=\"([^\"]+)\" alt=\"([^\"]+)?\" />" }} + {{ $reAltIn := "<img src=\"([^\"]+)\" alt=\"([^\"]+)?\">" }} {{ $reAltOut := ( printf "<figure><img src=\"/images/ring.svg\" data-sizes=\"auto\" data-src=\"%s$1\" alt=\"$2\" class=\"lazyload\"><figcaption class=\"image-caption\">$2</figcaption></figure>" $cdn_url ) }} {{ $altContent := .Content | replaceRE $reAltIn $reAltOut | safeHTML }} |