CSS
Get the URL to a stylesheet file in your theme.
Example
Template
{{ theme:css src="style" }}
Output
/site/themes/redwood/css/style.css
If you leave off the src
parameter, the tag will use the theme name as the filename.
Template
{{ theme:css }}
Output
/site/themes/redwood/css/redwood.css
Add the tag
parameter to output a link
tag.
Template
{{ theme:css src="style" tag="true" }}
Output
<link rel="stylesheet" href="/site/themes/redwood/css/style.css" />
Parameters
src string theme name | The path to the css file, relative to the css directory. You can leave off the extension, we know it's a .css file. |
---|---|
tag boolean false | Enable this to output the full HTML tag. |
version boolean false | If you are using Elixir to manage your theme assets, setting this to |
cache_bust boolean false | Setting this to |
absolute boolean false | Render the URL in an absolute format. |