Updated to reflect feedback in #4129

Included Jekyll 3 specific update to mention that jekyll-coffeescript gem must be installed and the gem added to the `_config.yml` file
This commit is contained in:
Lewis Cowles 2015-11-14 04:11:09 +00:00
parent eec94cd964
commit c984d8c531
1 changed files with 15 additions and 3 deletions

View File

@ -4,9 +4,10 @@ title: Assets
permalink: /docs/assets/ permalink: /docs/assets/
--- ---
Jekyll provides built-in support for Sass and CoffeeScript. In order to use Jekyll provides built-in support for Sass and can work with CoffeeScript via
them, create a file with the proper extension name (one of `.sass`, `.scss`, ruby gems. In order to use them, create a file with the proper extension name
or `.coffee`) and start the file with two lines of triple dashes, like this: (one of `.sass`, `.scss`, or `.coffee`) and start the file with two lines of
triple dashes, like this:
{% highlight sass %} {% highlight sass %}
--- ---
@ -78,3 +79,14 @@ sass:
These are passed to Sass, so any output style options Sass supports are valid These are passed to Sass, so any output style options Sass supports are valid
here, too. here, too.
## Coffeescript
To enable Coffeescript in Jekyll 3.0 and up you must
* Install the `jekyll-coffeescript` gem
* Ensure that your `_config.yml` is up-to-date and includes the following
{% highlight yaml %}
gems:[jekyll-coffeescript]
{% endhighlight %}