为什么 Jekyll 中的 Sass 个文件必须以 "two lines of triple dashes" 开头?

Why must Sass files in Jekyll start with "two lines of triple dashes"?

Jekyll 文档说:

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

Jekyll asset documentation

但是... 为什么? 我在任何地方都看不到 Jekyll 需要这个的任何解释。我担心这会使它变得不合适 Sass/SCSS,如果需要的话,我将无法轻易地将我的东西从 Jekyll 中迁移出来。


此外,我看到很多人在 GitHub 的 Jekyll 上使用 Sass 的例子却没有这种做法。

例如:

如果您在文档中进一步挖掘,您会发现 why front matter ?

并且只有您的条目 scss/sass 文件需要它。