The inclusion of assets into a template is much the same as including them into a normal site. There are certain file types that we accept within a git repository.
HTML File Types
CSS File Types
Image File Types
Other File Types
A common BaseKit repository directory structure looks like:
If you include any other file types, the repository will not upload to a BaseKit environment
Please use [a-z_-] characters only
There is a 100MB size limit on repositories, anything over this won’t be processed
asset() & image() functions
BaseKit templates can be deployed to multiple environments, so we refer to a file relatively in the template code. The BaseKit framework will convert these relative links into absolute urls at the point of display.
For example, to reference
logo.png in the images directory:
*.less files you use the
*.twig files you use the
You can also reference other files types within *twig and (as of version 7.53)
IMPORTANT: Using the
*.lessfiles is only available in version 7.53 and above.