Global Variables (12)
@customSearchContent global variable
Some of the Publii search plugins can generate search results as a separate area. In order to properly handle this feature you must implement two changes…
@customSearchInput global variable
Some of the Publii search plugins generates search input field. In order to properly handle this feature you must implement two changes in your theme: Just…
@customCommentsCode global variable
When you want to add support for Publii comments plugins, it is necessary to add support for customComments under supportedFeatures of the theme. To add…
@utils global variable
The @utils global variable has been create to store useful values. At this moment @utils contains only two fields: currentYear which can be used to create footers…
@customHTML global variable
The @customHTML global variable contains an object with custom HTML code defined by theme author. To create custom HTML areas in your theme, you need…
Introduction - global variables
During website rendering, you have access to a few global variables which store objects with additional useful data. @config - gives you access to theme…
@website global variable
Every website contains some useful data under the @website global variable. The @website.contentStructure global variable contains the following object: { posts: [post item], pages: [page…
Custom HTML
Every theme offers few places where user can inject custom HTML code. By default there are three places available: head, body and footer @headCustomCode -…
@pagination global variable
Homepage, tag, and author pages support pagination. It is based on a few global variables and helpers. You can use pagination not only for creating…
@config global variable
Theme option values are available under the @config global variable. There are three groups of settings: @config.basic.* - basic theme settings (the same for all…
@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…
@amp global variable
Notice: Update Regarding AMP Functionality We regret to inform you that the AMP functionality has been removed from our application starting with version 0.42.0 and…