diff options
author | rmaguiar <rmaguiar@tuta.io> | 2020-07-03 19:55:20 +0300 |
---|---|---|
committer | rmaguiar <rmaguiar@tuta.io> | 2020-07-03 19:55:20 +0300 |
commit | e954ab12399d743f3b84c6e6ba7315e00cc88e43 (patch) | |
tree | f6617abb6a9e0cb0e489d51b45344b7e50d07f28 /layouts | |
parent | 29d19537202ff92bab50ea8d9d9640f69b1d199a (diff) |
Remove extra images being generated
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/head.html | 8 | ||||
-rw-r--r-- | layouts/shortcodes/figure.html | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index caf592e..14f775d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -162,23 +162,23 @@ <meta name="twitter:image" content="{{ (.Fill "1280x640").Permalink }}"> {{ if and (in $.Site.Params.mainSections $.Section) (not .Params.sitemap_exclude) }} - {{ $.Scratch.Set "schemaCover" (slice ((.Fill "1280x640").Permalink) ((.Fill "1200x630 center").Permalink) ((.Resize (index $highRes 0)).Permalink)) }} + {{ $.Scratch.Set "schemaCover" (slice ((.Fill "1280x640").Permalink) ((.Fill "1200x630").Permalink) ((.Resize (index $highRes 0)).Permalink)) }} {{ end }} {{ end -}} {{ else if .Site.Params.cover }} {{ with resources.Get (.Site.Params.cover | default "img/cover.jpg") }} - <meta property="og:image" content="{{ (.Fill "1200x630 center").Permalink }}"> + <meta property="og:image" content="{{ (.Fill "1200x630").Permalink }}"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="630"> {{ with $.Site.Params.coverAlt }} <meta property="og:image:alt" content="{{ . }}"> {{ end }} <meta name="twitter:card" content="summary_large_image"> - <meta name="twitter:image" content="{{ (.Fill "1280x640 center").Permalink }}"> + <meta name="twitter:image" content="{{ (.Fill "1280x640").Permalink }}"> {{ if and (in $.Site.Params.mainSections $.Section) (not .Params.sitemap_exclude) }} - {{ $.Scratch.Set "schemaCover" (slice ((.Fill "1280x640").Permalink) ((.Fill "1200x630 center").Permalink) ((.Resize (index $highRes 0)).Permalink)) }} + {{ $.Scratch.Set "schemaCover" (slice ((.Fill "1280x640").Permalink) ((.Fill "1200x630").Permalink) ((.Resize (index $highRes 0)).Permalink)) }} {{ end }} {{ end }} diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index a229f22..f64607e 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -43,7 +43,7 @@ loading="lazy" data-srcset="{{ (.Resize (index $highRes 0)).RelPermalink }} {{ index $highRes 1 }}, {{ (.Resize (index $mediumRes 0)).RelPermalink }} {{ index $mediumRes 1 }}, {{ (.Resize (index $lowRes 0)).RelPermalink }} {{ index $lowRes 1 }}" src="data:{{ $encodedPlaceholder }}" - data-src="{{ (.Resize "800x").RelPermalink }}" + data-src="{{ (.Resize (index $mediumRes 0)).RelPermalink }}" {{ with $alt }}alt="{{ . }}"{{ end }} /> |