What do you mean, of course I can refer to global parameters in a css asset, I’ve done it before. I just can’t make it work here for some reason. CSS variables wouldn’t make sense since I never change the breakpoint at runtime. But on the other hand I also need it in a html template, hence the hugo parameter.
Error: error building site: render:
failed to render pages: render of "page" failed:
"/home/drm/WEBSITE/layouts/_default/baseof.html:3:9": execute of template failed: template: _default/single.html:3:9: executing "_default/single.html"
at <partial "docs/html-head" .>: error calling partial: "/home/drm/WEBSITE/layouts/partials/docs/html-head.html:13:56": execute of template failed: template: partials/docs/html-head.html:13:56: executing "partials/docs/html-head.html" at <resources.ExecuteAsTemplate>: error calling ExecuteAsTemplate: type <nil> not supported in Resource transformations
thanks, I had kinda forgot where my own posts where to be honest. So… I’m not even sure what went wrong, the paths were wrong but were the same on both files… Whatever, I renamed css the scss directory and changed it on html-head.html, and now it works. Those functions are really, really tricky. Honestly, why aren’t all text files under assets/ templates by default ? Wouldn’t people put them under static/ unless we wanted to use some magic code ?