Sign in
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Random Posts in Static sites

Avatar photoabacigalupe

Is there any way to show randomly @config.custom.uploadImage1 or @config.custom.uploadImage2 on a div?

My code is:

<div id=”bannersLPost” class=”bannersLPost”>
{{#checkIf @config.custom.lazyLoadEffect ‘!==’ “lqip” }}
{{responsiveSrcSet @config.custom.uploadBanner1}}


I have @ config.custom.uploadBanner1 and @ config.custom.uploadBanner2 … I want to show randomly banner1 or banner2.

How could i achieve that?

Thanks a lot in advanced.