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

What are you waiting for?

Start building your site today.

  1. 1 Download Publii
  2. 2 Write your content
  3. 3 Publish your site
Create website