{{css}} helper

It creates URL to the CSS file from the css catalog in the assets directory. Additionally, it adds to the file URL the v= param. For scripts use js; for other theme files use asset.

Syntax:

{{css "filepath.css"}}

Example:

<link rel="stylesheet" href="{{css "main.css"}}" />

Example output:

<link rel="stylesheet" href="https://example.com/assets/css/main.css?v=a928f6898da46898a928f6898da46898" />

Create your first website with Publii

Join thousands of creators who chose independence. Create content locally and publish lightning-fast, secure websites on your own terms.

Download Publii

Free and open source. Windows, macOS and Linux.

Read the getting started guide