The Ctesius app comes bundled with certain JS and CSS plugins, you can configure which are included or include your own in the config.yml
file in your theme. These will then be bundled into the blob.js
and blob.css
files and included in the site. (you can see a list of available assets here).
In your theme’s config.yml
file, you will need a construct such as this:
Asset packs are the stylesheets and JavaScript files which you wish to include in your theme. The Vendor assets are the core asset packs you wish to include, asset_pack
should be included here as these are the assets defined prior. The Ctesius
vendor asset pack includes the bare minimum you need to build a theme on Homeflow, with no excess.
If you would like or need the “classic” bundle of JavaScripts, you can add classic_extra
to you YML:
For a full reference of the Ctesius asset packs and the files they include click here.
To output your minified JS and CSS in your theme, add the following two lines:
Fonts can be used in the standard way.
Place the fonts folder in the assets folder in the theme. You can then refer to the folder as shown above with:
/liquid_assets/fonts/fontname