Add all old Wordpress posts and images

This commit is contained in:
Chris Hodapp
2020-05-02 12:27:07 -04:00
parent e9b2298c78
commit d952a8e9bc
110 changed files with 615 additions and 221 deletions

View File

@@ -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 -}}