Assets

How to work with and process assets.

You can get resources from the assets/ directory with resources.GetMatch or resources.Get. The following example gets the CSS file and processes it with Pipes:

{{ $css := resources.GetMatch "index.scss" | resources.ToCSS}}
<link rel="stylesheet" href="{{ $css.Permalink }}">