resources.Get | minify errors

Just trying to wrap my head around this. Any advice?

Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:5:8: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/Users/snoop/Lab/will/themes/atlantic/layouts/partials/head.html:6:44": execute of template failed: template: partials/head.html:6:44: executing "partials/head.html" at <minify>: got <nil>, expected resources.ResourceTransformer
Built in 22 ms
{{ $style := resources.Get "css/main.css" | minify | fingerprint }}

<link rel="stylesheet" href="{{ $style.Permalink }}">

The css is in /resources/assets/css/main.css

I’ll have to go back and trace my steps, but I could have sworn I saw in like 4 different places the CSS was supposed to live in /resources/assets/css/main.css but it turns out assets is supposed to be in the root folder?

@willduncanphoto We all have our days :grimacing: (don’t I know it…).

Yes you want assets in the project root, and if there is something that says otherwise it is wrong. It may have been a case of mistaking a discussion about something else for where assets belongs in the source code.

That is the default expectation, yes. You can have a look at module mounts if you want it to live somewhere else.

1 Like

Thanks. I’m just an idiot and had it in the wrong place.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.