URL encoding within CSS style tags

It’s a feature of the go templates. You need to tell the template that the value you are providing is actually already in it’s final format. I think you can do this with {{ "css/demo.css" | relURL | html }}