diff options
Diffstat (limited to 'layouts/partials/components/auto-detect-images.html')
-rw-r--r-- | layouts/partials/components/auto-detect-images.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/components/auto-detect-images.html b/layouts/partials/components/auto-detect-images.html index 808404e..9091118 100644 --- a/layouts/partials/components/auto-detect-images.html +++ b/layouts/partials/components/auto-detect-images.html @@ -2,7 +2,7 @@ <!-- https://gohugo.io/functions/replacere/ --> <!-- https://regex101.com/ --> {{- if and .IsPage (in .Site.Params.mainSections .Section) -}} - {{- $imgs := findRE `<img src="/?([^"]+)` .Content -}} + {{- $imgs := findRE `<img src="/?([^"]+)` .Content | uniq -}} {{- with $imgs -}} {{- $.Scratch.Delete "imgsURL" -}} {{- range . -}} |