hi every body
In my i have this in my list.html
{{ $portfolioScratch := newScratch }}
{{ $portfolioMobileScratch := newScratch }}
{{ partial "slides/columns" (dict "portfolioScratch" $portfolioScratch "portfolioMobileScratch" $portfolioMobileScratch "ctx" .) }}
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<section id="desktop" class="section work">
{{ partial "helpers/hidden-menu.html" . }}
{{ partial "slides/slider" (dict "scratch" $portfolioScratch "type" "desktop" "ctx" .) }}
</section>
<section id="mobile" class="section work">
{{ partial "helpers/hidden-menu.html" . }}
{{ partial "slides/slider" (dict "scratch" $portfolioMobileScratch "type" "mobile" "ctx" .) }}
</section>
and in my page i talk this
<div class='columns work-width {{ if eq .type "mobile" }} is-mobile is-multiline {{ end }}'>
{{ if eq (len ($.scratch.Get "posts")) 0 }}
<div class="column is-half is-offset-one-quarter">
</div>
{{ else }}
{{ range $index, $num := (seq ($.scratch.Get "columnsCount")) }}
<div class="column">
{{ $column := ($.scratch.Get (printf "%d" $index)) }}
{{ range $row := $column }}
{{ if (index $row "post").Params.images }}
{{ $scratch := newScratch }}
{{ partial "helpers/get" (dict "scratch" $scratch "row" (index $row "post").Params) }}
{{ $img := $scratch.Get "img" }}
{{ $resizer := "1000x r0" }}
{{ with $img.Exif }}
{{ if eq .Tags.Orientation 6 }}
{{ $resizer = "1000x r270" }}
{{ end }}
{{ if eq .Tags.Orientation 3 }}
{{ $resizer = "1000x r180" }}
{{ end }}
{{ if eq .Tags.Orientation 8 }}
{{ $resizer = "1000x r90" }}
{{ end }}
{{ end }}
{{ $img = $img.Resize $resizer }}
<div class="center">
<div class='image-box {{ if eq ($.scratch.Get "columnsCount") 1 }} alittle {{ end }}'>
{{ $pageLink := (index $row "post").Permalink }} <a href="{{ $pageLink }}">
<img
src="{{ $img.RelPermalink }}"
loading="lazy"
width="{{ $img.Width }}"
height="{{ $img.Height }}"
alt='{{ index (split $img.Name ".") 0 | replaceRE "^images/" "" }}'
/></a>
</div>
</div>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ end }}
</div>
But on my page, the mobile and desktop versions load at the same time. I didn’t develop that myself, and the developer no longer provides support.
Can you help me all ?
Many thanks