Add custom SCSS file from Front Matter


#1

Hi,
Anyone has tried adding custom SCSS file from the Front Matter?

My objective would be to add specific SCSS only to some of the listed results view.

Thanks.


#2

As far as I know, Jekyll do not compile Sass from the front matter.

What you can do is add one or more classes in the front matter and then use {{page.my_class_variable}} in your layout or in your include.