# Execute of template failed on Theme Install, tried methods in forum but did not work

**URL:** <https://discourse.gohugo.io/t/execute-of-template-failed-on-theme-install-tried-methods-in-forum-but-did-not-work/49752>\
**Category:** support\
**Created:** [May 10, 2024, 1:35pm UTC](https://discourse.gohugo.io/t/execute-of-template-failed-on-theme-install-tried-methods-in-forum-but-did-not-work/49752 "2024-05-10T13:35:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tao](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tao](https://discourse.gohugo.io/u/tao)\
**Post date:** [May 10, 2024, 1:35pm UTC](https://discourse.gohugo.io/t/execute-of-template-failed-on-theme-install-tried-methods-in-forum-but-did-not-work/49752/1 "2024-05-10T13:35:15Z")

</div>

what I did:  
hugo new site emoxin  
cd themes  
git clone --recurse-submodules [Abraham Raji / gruvhugo · GitLab](https://gitlab.com/avron/gruvhugo)

then I met errors:

WARN found no layout file for “html” for kind “home”: You should create a template file which matches Hugo Layouts Lookup Rules for this combination.  
WARN found no layout file for “html” for kind “taxonomy”: You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

…

so I duplicate everything in emoxin/themes/gruvhugo/layouts to emoxin/layouts, but have more errors:

ERROR render of “taxonomy” failed: “E:\github\emoxin.github.io\emoxin\emoxin\layouts\_default\baseof.html:3:8”: execute of template failed: template: \_default/list.html:3:8: executing “\_default/list.html” at \<partial “head.html” .\>: error calling partial: “E:\github\emoxin.github.io\emoxin\emoxin\layouts\partials\head.html:44:51”: execute of template failed: template: partials/head.html:44:51: executing “partials/head.html” at : error calling toCSS: type not supported in Resource transformations  
ERROR render of “404” failed: “E:\github\emoxin.github.io\emoxin\emoxin\layouts\_default\baseof.html:3:8”: execute of template failed: template: 404.html:3:8: executing “404.html” at \<partial “head.html” .\>: error calling partial: “E:\github\emoxin.github.io\emoxin\emoxin\layouts\partials\head.html:44:51”: execute of template failed: template: partials/head.html:44:51: executing “partials/head.html” at : error calling toCSS: type not supported in Resource transformations  
Total in 12 ms  
Error: error building site: render: failed to render pages: render of “home” failed: “E:\github\emoxin.github.io\emoxin\emoxin\layouts\_default\baseof.html:3:8”: execute of template failed: template: index.html:3:8: executing “index.html” at \<partial “head.html” .\>: error calling partial: “E:\github\emoxin.github.io\emoxin\emoxin\layouts\partials\head.html:44:51”: execute of template failed: template: partials/head.html:44:51: executing “partials/head.html” at : error calling toCSS: type not supported in Resource transformations

I also tried to copy everything from exampleSite to the root directory but also did not work.  
this is my repository and I wonder how to use exampleSite correctly. THANKS!

> **[emoxin.github.io/emoxin/emoxin at main · emoxin/emoxin.github.io](https://github.com/emoxin/emoxin.github.io/tree/main/emoxin/emoxin)**
>
> Contribute to emoxin/emoxin.github.io development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [May 10, 2024, 1:41pm UTC](https://discourse.gohugo.io/t/execute-of-template-failed-on-theme-install-tried-methods-in-forum-but-did-not-work/49752/2 "2024-05-10T13:41:33Z")

</div>

You missed a step.

```plaintext
hugo new site emoxin
cd emoxin
git clone --recurse-submodules https://gitlab.com/avron/gruvhugo themes/gruvhugo
echo "theme = 'gruvhugo'" >> hugo.toml

```

---

<div class="post-metadata">

**Author:** ![tao](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tao](https://discourse.gohugo.io/u/tao)\
**Post date:** [May 10, 2024, 2:03pm UTC](https://discourse.gohugo.io/t/execute-of-template-failed-on-theme-install-tried-methods-in-forum-but-did-not-work/49752/3 "2024-05-10T14:03:31Z")

</div>

Thanks! I tried your way, now the terminal has no warnings, but the preview image is weird, it has no contents. Is there anything wrong with this theme?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/2/7/279b97863420ebbe4a5104d9f40ff51387460651.png)

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [May 10, 2024, 2:06pm UTC](https://discourse.gohugo.io/t/execute-of-template-failed-on-theme-install-tried-methods-in-forum-but-did-not-work/49752/4 "2024-05-10T14:06:41Z")

</div>

> [@tao](#):
>
> Is there anything wrong with this theme?

Well, it hasn’t been updated in a long time, so it’s going to throw some errors.

Regardless, each theme provides its own installation and configuration instructions. Read their docs:  
[https://gitlab.com/avron/gruvhugo/-/blob/master/README.md#configuration](https://gitlab.com/avron/gruvhugo/-/blob/master/README.md#configuration)

---

<div class="post-metadata">

**Author:** ![tao](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tao](https://discourse.gohugo.io/u/tao)\
**Post date:** [May 10, 2024, 2:10pm UTC](https://discourse.gohugo.io/t/execute-of-template-failed-on-theme-install-tried-methods-in-forum-but-did-not-work/49752/5 "2024-05-10T14:10:02Z")

</div>

I’ve read this but the readme file is so short and has little instructrions 🤣  
Maybe I have to change another one. Thank you!

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [May 10, 2024, 2:12pm UTC](https://discourse.gohugo.io/t/execute-of-template-failed-on-theme-install-tried-methods-in-forum-but-did-not-work/49752/6 "2024-05-10T14:12:20Z")

</div>

It means copy the configuration settings from the config in the exampleSite directory.

---

<div class="post-metadata">

**Author:** ![tao](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tao](https://discourse.gohugo.io/u/tao)\
**Post date:** [May 10, 2024, 2:17pm UTC](https://discourse.gohugo.io/t/execute-of-template-failed-on-theme-install-tried-methods-in-forum-but-did-not-work/49752/7 "2024-05-10T14:17:58Z")

</div>

Well it confuses me a lot. Every guide tolds me need to add _theme=xxx_ in config.toml, but when I create a new site (the hugo version is latest), I only see the hugo.toml, not config.toml. config.toml always in this path: root/themes/XXtheme

Once I tried to copy every file in exampleSite into the root directory, but still did not work.

Now I copy config.toml to the root directoy(emoxin), but it said this instead:  
Error: command error: Unable to locate config file or config directory. Perhaps you need to create a new site.

Quite confusing 😵‍💫

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [May 10, 2024, 2:24pm UTC](https://discourse.gohugo.io/t/execute-of-template-failed-on-theme-install-tried-methods-in-forum-but-did-not-work/49752/8 "2024-05-10T14:24:49Z")

</div>

Maybe you should start with something basic and easy:

[https://gohugo.io/getting-started/quick-start/](https://gohugo.io/getting-started/quick-start/)

---

<div class="post-metadata">

**Author:** ![tao](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tao](https://discourse.gohugo.io/u/tao)\
**Post date:** [May 10, 2024, 2:31pm UTC](https://discourse.gohugo.io/t/execute-of-template-failed-on-theme-install-tried-methods-in-forum-but-did-not-work/49752/9 "2024-05-10T14:31:27Z")

</div>

Thanks!
