Build not as expected
Given attempt to follow a) installation instructions and b) an AI assisted attempt to update Update partials/head.html: to change resources.PostCSS to css.PostCSS
Outcome is underwhelming:
Hard as newbie to determine whether PEBKAC or not
I believe this might be a problem with deprecated dependencies. I will look into it in the next few days. Until then, I will keep the issue open. Thank you @m4sterbunny for reporting this.
Hello @m4sterbunny, I have tried to install the theme from scratch in a fresh Hugo site and it works as expected. Some dependencies may not be update but at least for me it is not a problem. Have you sure to have followed every step in the readme? Are there any errors that you can provide me? Both in the terminal and in the log console? TYSM.
I will run through again @jacksalici and screenshot my journey
Following first pattern "Preview the example site"
- Prerequisites
- Clone and install
- cd and serve
Outcome:
Following the second pattern: install the theme (to an existing site):
0.1 Prerequisites (as per above)
0.2 have an existing site
0.3 initiate with git
-
Add as submodule
-
copy hugo.toml from theme
-
install dependencies a. at theme level
b. at root level
-
Serve
hugo serverOutcome: -
Bringing layout folder up from theme
-
Serve Outcome: Start building sites … hugo v0.138.0+extended+withdeploy darwin/arm64 BuildDate=2024-11-06T11:22:34Z VendorInfo=brew
WARN deprecated: resources.PostCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.PostCSS instead. ERROR render of "home" failed: "/Users/{user-id}/GitHub/experiments-in-hugo/jacksalanger/pattern2/layouts/_default/baseof.html:6:6": execute of template failed: template: index.html:6:6: executing "index.html" at <partial "head.html" .>: error calling partial: "/Users/{user-id}/GitHub/experiments-in-hugo/jacksalanger/pattern2/layouts/partials/head.html:48:54": execute of template failed: template: partials/head.html:48:54: executing "partials/head.html" at <resources.PostCSS>: error calling PostCSS: no Resource provided in transformation ERROR render of "taxonomy" failed: "/Users/{user-id}/GitHub/experiments-in-hugo/jacksalanger/pattern2/layouts/_default/baseof.html:6:6": execute of template failed: template: _default/taxonomy.html:6:6: executing "_default/taxonomy.html" at <partial "head.html" .>: error calling partial: "/Users/{user-id}/GitHub/experiments-in-hugo/jacksalanger/pattern2/layouts/partials/head.html:48:54": execute of template failed: template: partials/head.html:48:54: executing "partials/head.html" at <resources.PostCSS>: error calling PostCSS: no Resource provided in transformation Built in 3 ms Error: error building site: render: failed to render pages: render of "404" failed: "/Users/{user-id}/GitHub/experiments-in-hugo/jacksalanger/pattern2/layouts/_default/baseof.html:6:6": execute of template failed: template: 404.html:6:6: executing "404.html" at <partial "head.html" .>: error calling partial: "/Users/{user-id}/GitHub/experiments-in-hugo/jacksalanger/pattern2/layouts/partials/head.html:48:54": execute of template failed: template: partials/head.html:48:54: executing "partials/head.html" at <resources.PostCSS>: error calling PostCSS: no Resource provided in transformation
Perhaps I need Go or something else that you have day-to-day and no longer think about?
If there is anything else I can show to assist, pls holler!
Sorry, It's a very busy period for me. Thank you very much for the detailed information, as soon as possibile I will work to solve it.
Would it help if I made you a VM to have a "from scratch" experience with?
I will use the christmas holidays to solve this issue and publish and update 💪