Download
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.

Show container only once on front page?

  • #10298
    Avatar photo[anonymous]
    I have a container that I only want to show on the front page.
    Wondering what is the syntax for the conditional logic I can wrap around the div in the theme’s override of index.hbs to only show it once on the front page and not on the subsequent “previous” and “next” pages?
    <h2 class="blog_post_heading">some text here</h2> 
    #10299
    Avatar photoBob
    {{#if @renderer.isFirstPage}}
        ...
    {{/if}}
    

    More about it: https://getpublii.com/dev/renderer-global-variable/

    #10304
    Avatar photo[anonymous]

    Thanks Bob!  These docs are excellent.

    #10306
    Avatar photo[anonymous]

    Looks like this worked out perfectly: https://oldschooltrainer.com