Iterate through static files

Hi,

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

for cssFile in css/*.css
   load $cssFile
done

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

Thanks
LM

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.