apvarun / blist-hugo-theme

Blist is a clean and fast blog theme for your Hugo site.
https://blist.vercel.app/
MIT License
333 stars 165 forks source link

Execution of template failed- error calling head.html #144

Closed psalphabeta closed 7 months ago

psalphabeta commented 8 months ago

Cloned the theme to themes folder and example site also shows up on localhost but when tried to run the actual site with hugo server it shows this error also its a new site with 1 demo post

Start building sites … hugo v0.121.2-6d5b44305eaa9d0a157946492a6f319da38de154+extended windows/amd64 BuildDate=2024-01-05T12:21:15Z VendorInfo=gohugoio

ERROR render of "taxonomy" failed: "F:\rtg\siteassets\hugostatic\hugoprofile\mencablog\new\demo\themes\blist\layouts_default\baseof.html:3:5": execute of template failed: template: _default/list.html:3:5: executing "_default/list.html" at <partial "head.html" .>: error calling partial: partial "head.html" timed out after 30s. This is most likely due to infinite recursion. If this is just a slow template, you can try to increase the 'timeout' config setting. Built in 30380 ms Error: error building site: render: failed to render pages: render of "home" failed: "F:\rtg\siteassets\hugostatic\hugoprofile\mencablog\new\demo\themes\blist\layouts_default\baseof.html:3:5": execute of template failed: template: index.html:3:5: executing "index.html" at <partial "head.html" .>: error calling partial: partial "head.html" timed out after 30s. This is most likely due to infinite recursion. If this is just a slow template, you can try to increase the 'timeout' config setting.

Followed this steps Copy package.json and package-lock.json to the root folder of your website Run npm install to install required packages for theme Run npm i -g postcss-cli to use PostCSS with Hugo build Set theme = 'blist' in config.toml hugo server