Add all old Wordpress posts and images
This commit is contained in:
@@ -32,7 +32,11 @@ Documentation and licence at https://github.com/liwenyip/hugo-easy-gallery/
|
||||
{{- if eq $original nil -}}
|
||||
{{- errorf "Error: Can't find resource %s on page %s" $resource (.Get "page") -}}
|
||||
{{- end -}}
|
||||
{{- .Scratch.Set "image" ($original.Resize $resize_opts) -}}
|
||||
{{- if .Get "noresize" -}}
|
||||
{{- .Scratch.Set "image" $original -}}
|
||||
{{- else -}}
|
||||
{{- .Scratch.Set "image" ($original.Resize $resize_opts) -}}
|
||||
{{- end -}}
|
||||
{{- $image := .Scratch.Get "image" -}}
|
||||
{{- $thumb = $image.RelPermalink -}}
|
||||
{{- $href = $original.RelPermalink -}}
|
||||
|
||||
Reference in New Issue
Block a user