My apologies for not sharing that information earlier. I’m relatively new to Hugo. What I did was create a custom theme and placed the files inside themes/custom-theme/assets/css/ folder. So, the folder’s content is this:
Yeah, that’s not going to work. Files in the assets directory are not published unless they are captured as a resource, then published with the Permalink, RelPermalink, or Publish methods.
Since you’re publishing the main file to css/main.css, perhaps the easiest approach is to place them in static:
I used to use Sass in the assets folder and it worked fine. But now, since CSS can do what I need (like nesting), I switched to vanilla CSS. So, those files have to go in the static folder instead. Thank you.
I want to do the same, to have 01_something.css, 02_something.css, then concatenate them and import. In that case I create a resource, right? so I can still use the “assets” folder?
git clone --single-branch -b hugo-forum-topic-49913 https://github.com/jmooring/hugo-testing hugo-forum-topic-49913
cd hugo-forum-topic-49913
hugo server
baseof.html contains this:
{{ with resources.Match "css/*" }}
{{ with resources.Concat "css/style.css" . | minify | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ end }}
{{ end }}