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:
authorSylvia <sylvie@gmail.com>2021-09-07 23:18:05 +0300
committerSylvia <sylvie@gmail.com>2021-09-07 23:18:05 +0300
commit4fabd15f69673bcfbb83029ecd5eef816c671de4 (patch)
treeb283f05bae46ae0f7914896adca1bd172e4f0670
parent9ad9ce709751d2280aad9dd0b255224ed5d52118 (diff)
Remove some legacy code. Imagepath calculation with path.join is not longer needed here.
-rw-r--r--layouts/partials/sect_and_img_content.html5
1 files changed, 1 insertions, 4 deletions
diff --git a/layouts/partials/sect_and_img_content.html b/layouts/partials/sect_and_img_content.html
index 48c8463..52d385a 100644
--- a/layouts/partials/sect_and_img_content.html
+++ b/layouts/partials/sect_and_img_content.html
@@ -19,9 +19,6 @@
{{- $title := .Title }}
{{- $link := .RelPermalink }}
- {{- /* The path we need under the assets directory */}}
- {{- $imgpath := path.Join .Params.albumthumb }}
-
{{- $.Scratch.Delete "image" }}
{{- /* If no albumthumb is set, get the first image*/}}
@@ -33,7 +30,7 @@
{{- /* Otherwise get the albumthumb*/}}
{{- with .Params.albumthumb }}
- {{- $image := resources.Get $imgpath }}
+ {{- $image := resources.Get . }}
{{- $.Scratch.Set "image" $image }}
{{- end }}