hugo-fresh icon indicating copy to clipboard operation
hugo-fresh copied to clipboard

Parameterize font in sass

Open rlemaitre opened this issue 4 years ago • 3 comments

Use resources.ExecuteAsTemplate (introduced inn hugo 0.43) to use config variables in SASS. Unfortunately, only base SASS files can be used as Go template, that's why the variable is defined in main file instead of partials.

It should fix #46

rlemaitre avatar May 23 '20 22:05 rlemaitre

I don't see why the CI checks fail. Does anybody can help?

rlemaitre avatar May 24 '20 14:05 rlemaitre

@rlemaitre thanks a lot! I had to change the font-family: Sfont-stack to font-family: $font-stack and it worked.

asvinp avatar Aug 20 '20 18:08 asvinp

@asvinp Thanks a lot, i had a hard time finding it

rlemaitre avatar Oct 11 '20 17:10 rlemaitre