mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-01 04:21:55 -04:00
do not lazy load the feature image
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
{{ $img = resources.Get $path }}
|
||||
{{ end -}}
|
||||
|
||||
{{/* https://github.com/gohugoio/hugo/pull/10666/files */}}
|
||||
{{/* https://github.com/gohugoio/hugo/pull/10666 */}}
|
||||
{{- $params := $url.Query -}}
|
||||
{{- $x2Param := $params.Get "2x" -}}
|
||||
{{- $x2 := false -}}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<div class="prose">
|
||||
{{ $altText := $.Params.featureAlt | default $.Params.coverAlt | default "" }}
|
||||
{{ $class := "mb-6 -mt-4 rounded-md" }}
|
||||
{{ partial "pictureDefaults.html" (dict "img" . "alt" $altText "class" $class) }}
|
||||
{{ partial "pictureDefaults.html" (dict "img" . "alt" $altText "class" $class "lazy" false) }}
|
||||
{{ with $.Params.coverCaption }}
|
||||
<figcaption class="mb-6 -mt-3 text-center">{{ . | markdownify }}</figcaption>
|
||||
{{ end }}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{{ $lazy := .lazy }}
|
||||
{{ $webp := .webp }}
|
||||
{{ $lqip := .lqip }}
|
||||
{{ $x2 := .x2 | default false }}
|
||||
{{ $x2 := .x2 }}
|
||||
|
||||
{{ with $img }}
|
||||
{{ if (eq .MediaType.SubType "svg") }}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{{ $img := .img }}
|
||||
{{ $alt := .alt }}
|
||||
{{ $class := .class }}
|
||||
{{ $lazy := $.Page.Site.Params.enableImageLazyLoading | default true }}
|
||||
{{ $lazy := .lazy | default $.Page.Site.Params.enableImageLazyLoading | default true }}
|
||||
{{ $webp := $.Page.Site.Params.enableImageWebp | default true }}
|
||||
{{ $lqip := false }}
|
||||
{{ $x2 := .x2 }}
|
||||
|
||||
Reference in New Issue
Block a user