theme
Get paths to theme files.
{{ theme:partial }}
Display a partial from within the currently-selected theme’s partials
folder.
Sample Usage
<h2>Blog categories</h2>
{{ theme:partial src="categories" }}
This tag will be replaced by the rendered code from within the currently-selected theme’s partials/categories.html
file.
Parameters
This tag accepts the following parameters:
src
— required — the name of the file to pull in, file extension optional
{{ theme:asset }}
Grab the full web-path to an asset file within the currently-selected theme’s folder.
Sample Usage
{{ theme:asset src="file.ext" }}
Parameters
This tag accepts the following parameters:
src
— required — the name of the asset to look up
{{ theme:js }}
Grab the full web-path to a JavaScript file within the currently-selected theme’s js
folder.
Sample Usage
<script src="{{ theme:js src="jquery" }}"></script>
Parameters
This tag accepts the following parameters:
src
— the name of the script file to look up, file extension optional; uses the name of the theme by default
{{ theme:css }}
Grab the full web-path to a stylesheet within the currently-selected theme’s css
folder.
Sample Usage
<link href="{{ theme:css src="print" }}">
Parameters
This tag accepts the following parameters:
src
— required — the name of the stylesheet file to look up, file extension optional; uses the name of the theme by default
{{ theme:img }}
Grab the full web-path to an image within the currently-selected theme’s img
folder.
Sample Usage
<img src="{{ theme:img src="logo.png" }}" alt="Logo">
Parameters
This tag accepts the following parameters:
src
— required — the name of the image file to look up, file extension is required