Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/components/auto-detect-images.html')
-rw-r--r--layouts/partials/components/auto-detect-images.html2
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 . -}}