Developers

stylesheet_link

Generates LINK tag for stylesheet file. Use inside HEAD tag.

{% stylesheet_link "style.css" %}

#=> <link href="stylesheets/style.css" type="text/css" rel="stylesheet" media="screen">

To generate 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 "files/style.css" static_host="true" %}

#=> <link href="http://static.edicy.com/files/style.css" type="text/css" rel="stylesheet" media="screen">

Attributes

media

Set media type for stylesheet.