Hello
I have a question that might be quite a novice one.
I have a JSON file that has three things for each item and with that, I create a photo album.
"link": "https://photos.app.goo.gl/i64TdnsX7mdVE1jf8", "img_src": "/images/travel/2002-yosemite.jpg", "title": "2002 Yosemite"
Now I want to create pagination or multiple pages which will only load when users ask for more.
By default, I would like to load only the top 12 so that the page does not become too long.
this is the code I create content now.
{{ $url := "bird_wildlife.json" }}
{{ $gistJ := getJSON $url}}
<div class="blog-post section has-text-justiitemfied" prop="articleBody">
<p>
<div class="columns is-mobile is-multiline is-centered is-vcentered">
{{ range $gistJ }}
<div class="column is-one-quarter-desktop is-half-tablet is-half-mobile">
<div class="card">
<div class="card-image">
<figure class="image is-1by1 zoom">
<a href="{{ .link}}"><img loading="lazy" src="{{ .img_src }}" alt="{{ .title }}"></a>
</figure>
<footer class="card-footer is-hidden-touch">
<a class="card-footer-item" href="{{ .link}}">
{{ .title }}
</a>
</footer>
</div>
</div>
</div>
<!-- end of col -->
{{ end }}
</div> <!-- end of text colmuns -->
</p>
</div>