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

github.com/kc0bfv/autophugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl <kc0bfv@gmail.com>2020-12-30 08:51:22 +0300
committerKarl <kc0bfv@gmail.com>2020-12-30 08:51:22 +0300
commit3847df0dc84482e55adc136101a2a03b50d17f38 (patch)
tree0cef9e2de8d74a5a0ff8d6b9ae059687eaaf6b45 /layouts
parent6d7fabb344b6f42162506fcc85fde01fdf51f791 (diff)
Another * not needed and actually a bug
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/section_list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/section_list.html b/layouts/partials/section_list.html
index 7e203be..2e04104 100644
--- a/layouts/partials/section_list.html
+++ b/layouts/partials/section_list.html
@@ -21,7 +21,7 @@
{{- /* If no albumthumb is set, get the first image*/}}
{{- if or (not (isset .Params "albumthumb")) (eq .Params.albumthumb "") }}
- {{- $imgglob := printf "*%s" (path.Join .File.Dir "**") }}
+ {{- $imgglob := printf "%s" (path.Join .File.Dir "**") }}
{{- $imageresources := where (resources.Match $imgglob) "ResourceType" "image" }}
{{- $.Scratch.Set "image" (index $imageresources 0) }}
{{- end }}