Custom CSS and JS
However, sometimes you may need to load additional style or script files. In such cases, you can add custom
.js files by listing them in the
config.toml file (see the snippet below). Similar to images, these paths should be relative to the
1[params] 2... 3customCSS = ["css/custom.css"] # Include custom CSS files 4customJS = ["js/custom.js"] # Include custom JS files 5...
Pro Tip: You can change the theme colors via the this variable's SASS file
Clarity provides some hooks for adding code on page.
If you need to add some code(CSS import, HTML meta or similar) to the head section on every page, add a partial to your project:
Similar, if you want to add some code right before the body end, create your own version of the following file: