@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

Create your first website with Publii

Join thousands of creators who chose independence. Create content locally and publish lightning-fast, secure websites on your own terms.

Download Publii

Free and open source. Windows, macOS and Linux.

Read the getting started guide