diff options
Diffstat (limited to 'themes/flog/layouts/partials/listing.html')
| -rw-r--r-- | themes/flog/layouts/partials/listing.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/flog/layouts/partials/listing.html b/themes/flog/layouts/partials/listing.html index a893211..a5556b6 100644 --- a/themes/flog/layouts/partials/listing.html +++ b/themes/flog/layouts/partials/listing.html @@ -11,7 +11,11 @@ <div class="card"> {{ if .Params.image }} <div class="card-image"> - <a href="{{ .RelPermalink }}"><img src="/images/{{ .Params.image }}"></a> + <a class="jsonly" href="{{ .RelPermalink }}"><img src="/images/min/{{ .Params.image }}" onload="this.src = '/images/{{ .Params.image }}'"></a> + <noscript> + <a href="{{ .RelPermalink }}"><img src="/images/{{ .Params.image }}"></a> + <style>.jsonly { display: none }</style> + </noscript> </div> {{ end }} <section class="card-content" itemprop="text"> |
