# resources.Get | minify errors

**URL:** <https://discourse.gohugo.io/t/resources-get-minify-errors/36763>\
**Category:** support\
**Created:** [January 25, 2022, 7:15am UTC](https://discourse.gohugo.io/t/resources-get-minify-errors/36763 "2022-01-25T07:15:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![willduncanphoto](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/willduncanphoto/32/11840_2.png) [@willduncanphoto](https://discourse.gohugo.io/u/willduncanphoto)\
**Post date:** [January 25, 2022, 7:15am UTC](https://discourse.gohugo.io/t/resources-get-minify-errors/36763/1 "2022-01-25T07:15:15Z")

</div>

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

```auto
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

```

```auto
{{ $style := resources.Get "css/main.css" | minify | fingerprint }}

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

```

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

[https://github.com/willduncanphoto/willduncan](https://github.com/willduncanphoto/willduncan)

---

<div class="post-metadata">

**Author:** ![willduncanphoto](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/willduncanphoto/32/11840_2.png) [@willduncanphoto](https://discourse.gohugo.io/u/willduncanphoto)\
**Post date:** [January 25, 2022, 7:33am UTC](https://discourse.gohugo.io/t/resources-get-minify-errors/36763/2 "2022-01-25T07:33:29Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![cshoredaniel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/cshoredaniel/32/19684_2.png) [@cshoredaniel](https://discourse.gohugo.io/u/cshoredaniel)\
**Post date:** [January 25, 2022, 8:18am UTC](https://discourse.gohugo.io/t/resources-get-minify-errors/36763/3 "2022-01-25T08:18:52Z")

</div>

@willduncanphoto We all have our days 😬 (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.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [January 25, 2022, 10:51am UTC](https://discourse.gohugo.io/t/resources-get-minify-errors/36763/4 "2022-01-25T10:51:49Z")

</div>

> [@willduncanphoto](#):
>
> t assets is supposed to be in the root folder?

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

---

<div class="post-metadata">

**Author:** ![willduncanphoto](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/willduncanphoto/32/11840_2.png) [@willduncanphoto](https://discourse.gohugo.io/u/willduncanphoto)\
**Post date:** [January 26, 2022, 4:05am UTC](https://discourse.gohugo.io/t/resources-get-minify-errors/36763/5 "2022-01-26T04:05:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [January 28, 2022, 4:05am UTC](https://discourse.gohugo.io/t/resources-get-minify-errors/36763/6 "2022-01-28T04:05:03Z")

</div>

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