stylesheet_link
Generates a <LINK> tag for a stylesheet file. Use inside the <HEAD> tag.
{% stylesheet_link "style.css" %}
#=> <link href="stylesheets/style.css" type="text/css" rel="stylesheet" media="screen">
To generate a link tag for print media:
{% stylesheet_link "print.css" media="print" %}
#=> <link href="stylesheets/print.css" type="text/css" rel="stylesheet" media="print">
To generate link from static host:
{% stylesheet_link "libs/edicy-search/latest/edicy-search.css" static_host="true" %}
#=> <link href="https://static.voog.com/libs/edicy-search/latest/edicy-search.css" type="text/css" rel="stylesheet" media="screen">
Attributes
media
- Set media type for stylesheet.
static_host
-
Makes the link refer to a file in our static asset server.