From 5e1b0f40ab55f5fe55f73e26f73974a037eb5855 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 24 Mar 2017 11:04:38 +0200 Subject: [PATCH] Revert "layouts: Add imageConfig to set height and width" This reverts commit bf9bca9656d612b0d7cba0a869a69984c82f5647. If the user specifies a non-local image then the build generates an error. See #56. We need to have a way to only get imageInfo for local images... --- layouts/_default/single.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0b5f151..de9a14e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -10,11 +10,7 @@ {{- with .Params.images -}}{{ range first 1 . }} "image": { "@type": "ImageObject", - "url": "{{ . | absURL }}", - {{ with (imageConfig (printf "/static/%s" .)) }} - "height": "{{ .Height }}", - "width": "{{ .Width }}" - {{ end }} + "url": "{{ . | absURL }}" }, {{- end -}}{{ end }} "url": "{{ printf "%s" .Permalink }}",