Skip to content

Runtime error when publishing site #52

Discussion options

You must be logged in to vote

I figured it out. It had to do with incorrect interpolation in a sass script calc() function.

https://sass-lang.com/documentation/values/calculations/

what I had:

@function g($columns, $of){
  @return(calc($columns / $of)) * 100%;
}

What I needed to fix:

@function g($columns, $of){
  @return calc(( #{$columns} / #{$of}) * 100%);
}

This took me way too long to figure out. I had to uninstall and reinstall a bunch of gem dependencies to figure out what was going wrong. I still think Siteleaf error handling should be more verbose!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sskylar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant