Christmas Sale! Get 69% OFF for All Publii Themes Get the pack!

Christmas Sale 69% OFF! All Publii Themes

GitHub Download

@renderer global variable

The rendering engine offers additional global variables which can be useful in some cases e.g. if you want to display some sections only on the first/last page of post listings.

  • @renderer.isFirstPage - true if displayed page is the first page in the listing, otherwise false,
  • @renderer.isLastPage - true if displayed page is the last page in the listing, otherwise false.
  • @renderer.previewMode - true if page is displayed in the preview
  • @renderer.ampMode - true if the displayed page is in amp mode


Get the latest Publii news, updates and more delivered directly to your email inbox

You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at By clicking below, you agree that we may process your information in accordance with our Privacy Policy.