jekyll: front matter in scss is causing grief with scss-lint task
http://jekyllrb.com/docs/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
except that front matter (the yaml stuff at the top) is not proper sass; and makes tools like grunt-scss-lint
or scss-lint
barf.
see also https://github.com/robwierzbowski/generator-jekyllrb/issues/130
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 2
- Comments: 22 (13 by maintainers)
Please reopen this. It is not fixed/implemented.
I’m having this issue as well and cannot find a solution anywhere. Does anyone know how to fix it?
@envygeeks
You mean the one @mediadoneright was referring to? My guess is he means the language standards (SASS/HAML/LESS/etc) that Jekyll requires you to violate by including invalid syntax at the top of each file (which breaks linters and syntax highlighters, among other things).
You make a good point though about the complexity added by scale. I think @dnozay has proposed a pretty good solution to that above. Making this feature opt-in eliminates all concerns about backwards compatibility, and makes performance significantly less of a concern since you don’t have to worry about affecting performance for those who don’t have the feature enabled (though obviously performance for those who do enable the feature is still a concern).