×
关于

开始旅程

快速指南安装基本用法目录结构配置

编辑内容

头信息撰写博客使用草稿创建页面常用变量Data FilesAssets博客迁移

定制

模板永久链接分页功能插件附加功能

部署

GitHub Pages部署方法

杂项

常见问题使用 Jekyll 的站点相关资源升级

元信息

贡献

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.


分类导航

关注微信下载离线手册

bootwiki移动版 bootwiki
(群号:472910771)