Helpers (56)
{{js}} helper
It creates URL to the JS file from the js catalog in the assets directory. Additionally, it adds to the file URL the v= param.
{{menuUrl}} helper
(Used in menu structure) Helper for creating URLs in the menu. Use it inside menu.hbs. It returns the URL of the current menu item, whether…
{{#is}} helper
The {{#is}} helper is a block helper designed to check if a specific context is loaded. To check that a context is not loaded, use…
{{responsiveSizes}} helper
Helper for the sizes attribute in the images syntax, based on options. The helper reads the value from the files.responsiveImages section of the theme's config.json,…
{{#isNotEmpty}}
Checks if the given collection is not empty. Use it to output a list together with its wrapper markup, such as a heading or <ul>,…
{{metaRobots}} helper
Helper for generating robots meta tag. The value comes from the SEO settings of the current page. The helper outputs nothing for index, follow or…
{{pageUrl}} helper
(Used in pagination) Helper for creating pagination URLs. Pass @pagination.context and a page number. The helper builds the URL from your domain and URL settings,…
{{#isEmpty}} helper
Checks if the given collection is empty. Use it to show a fallback, such as a short message, when a list like tags has no…
{{{publiiHead}}} helper
Helper for creating output with Publii-related tags. Syntax: {{{publiiHead}}} Example output: <meta name="generator" content="Publii" /> Should be used in the <head> section of the website.
{{#isCurrentPage}} helper
(Used in pagination) Helper for checking if a given page number is a current page. Use it in pagination links to mark the page the…
{{#checkIf}} helper
An extended version of the #if block helper with support for operators. Useful if you need to compare two arguments in a non-standard way. To…
{{jsonify}} helper
Helper for creating JSON-safe strings. Syntax: {{{jsonify string|object}}} Example: {{{jsonify tags}}} Warning! Please remember to use three curly braces instead of two if you want…