鍍金池/ 教程/ Java/ Assets
Assets
相關(guān)資源
創(chuàng)建頁(yè)面
基本用法
常見(jiàn)問(wèn)題
模板
升級(jí)
配置
部署方法
使用 Jekyll 的站點(diǎn)
頭信息
插件
博客遷移
永久鏈接
使用草稿
貢獻(xiàn)
分頁(yè)功能
安裝
目錄結(jié)構(gòu)
Data Files
常用變量
GitHub Pages
撰寫(xiě)博客
快速指南
附加功能

Assets

Jekyll provides built-in support for Sass and CoffeeScript. In order to use them, create a file with the proper extension name (one of .sass, .scss, or .coffee) and start the file with two lines of triple dashes, like this:

---
---

// start content
.my-definition
  font-size: 1.2em

Sass/SCSS

Jekyll allows you to customize your Sass conversion in certain ways.

If you are using Sass @import statements, you’ll need to ensure that your sass_dir is set to the base directory that contains your Sass files. You can do that thusly:

sass:
    sass_dir: _sass

The Sass converter will default to _sass.

You may also specify the output style with the style option in your_config.yml file:

sass:
    style: :compressed

These are passed to Sass, so any output style options Sass supports are valid here, too.