Iterate through static files


if I have 10 css file, can I make an iteration like

for cssFile in css/*.css
   load $cssFile

Or should I move them into assets? I do not really need to do anything, like minify. Just load.


Hi there,

What do you mean by “load”? Do you want to display the contents of the css files? Do you want a reference/URL of the css files?

From the docs:

What do you mean by “load”?
It’s reference to file. I was looking at Resources and didn’t find the readdir. Will try with it.

The alternative is to move css into assets and use HugoPipe to load all of them.