Hey, Hugo n00b here with what’s hopefully a simple question. I’m putting my first theme together, and I’m wondering how y’all handle static resource paths? I know that by default if I include a relative path in my HTML it’ll get echoed out into the result directly, so I’ve found myself doing things like
href="{{.Site.BaseURL}}css/style.css"
in my partials to make sure they’ll work at different levels in the URI hierarchy, but I’m wondering if there’s any nicer way to handle these paths? Especially in my CSS, which isn’t processed by Hugo so I can’t even do that. I’ve been using full paths with a leading slash, which works fine for my use case, but it would break if I tried to use the same theme on a site that was getting deployed to a subdirectory instead of the root of a domain.
This seems like a common enough issue that it’s got to have a simple solution that I’m missing, but I wasn’t able to find anything in the docs. Any ideas?