stylesheet
Generates a <link /> tag for a given CSS resource URL.
{{#stylesheet url [preload=boolean] [media=string] /}}
Required params
url string: The CSS resource URL.
Optional params
-
preloadboolean: Whether to enable preloading. If set totrue, the resource URL is added to the HTTPLinkresponse header; if set tofalse, it is not added. -
mediastring: The media query condition. For example,screen,print, or(max-width: 600px).
Example
Generate a stylesheet link for a CSS file within the theme.
{{#stylesheet "base/index.css" | asset_url() /}}
Was this article helpful to you?