Skip to content

Update Hugo#134

Merged
jarrodmillman merged 1 commit intoscientific-python:mainfrom
jarrodmillman:hugo-0.93.2
Mar 4, 2022
Merged

Update Hugo#134
jarrodmillman merged 1 commit intoscientific-python:mainfrom
jarrodmillman:hugo-0.93.2

Conversation

@jarrodmillman
Copy link
Member

@jarrodmillman jarrodmillman commented Mar 4, 2022

The theme works for 0.93.1 after #132, but it doesn't work for 0.93.2:
https://github.com/gohugoio/hugo/releases/tag/v0.93.2

7:55:56 AM: Start building sites …
7:55:56 AM: hugo v0.93.2-643B5AE9+extended linux/amd64 BuildDate=2022-03-04T12:21:49Z VendorInfo=gohugoio
7:55:56 AM: ERROR 2022/03/04 15:55:56 render of "section" failed: execute of template failed: template: _default/section.html:41:7: executing "_default/section.html" at <partial "javascript.html" .>: error calling partial: "/opt/build/scientific-python-hugo-theme/layouts/partials/javascript.html:17:11": execute of template failed: template: partials/javascript.html:17:11: executing "partials/javascript.html" at <readDir $jsDir>: error calling readDir: failed to read directory "static/js": open /opt/build/repo/doc/static/js: no such file or directory
7:55:56 AM: ERROR 2022/03/04 15:55:56 render of "page" failed: execute of template failed: template: _default/single.html:41:7: executing "_default/single.html" at <partial "javascript.html" .>: error calling partial: "/opt/build/scientific-python-hugo-theme/layouts/partials/javascript.html:17:11": execute of template failed: template: partials/javascript.html:17:11: executing "partials/javascript.html" at <readDir $jsDir>: error calling readDir: failed to read directory "static/js": open /opt/build/repo/doc/static/js: no such file or directory
7:55:56 AM: ERROR 2022/03/04 15:55:56 render of "page" failed: execute of template failed: template: _default/single.html:41:7: executing "_default/single.html" at <partial "javascript.html" .>: error calling partial: "/opt/build/scientific-python-hugo-theme/layouts/partials/javascript.html:17:11": execute of template failed: template: partials/javascript.html:17:11: executing "partials/javascript.html" at <readDir $jsDir>: error calling readDir: failed to read directory "static/js": open /opt/build/repo/doc/static/js: no such file or directory
7:55:56 AM: ERROR 2022/03/04 15:55:56 render of "page" failed: execute of template failed: template: _default/single.html:41:7: executing "_default/single.html" at <partial "javascript.html" .>: error calling partial: "/opt/build/scientific-python-hugo-theme/layouts/partials/javascript.html:17:11": execute of template failed: template: partials/javascript.html:17:11: executing "partials/javascript.html" at <readDir $jsDir>: error calling readDir: failed to read directory "static/js": open /opt/build/repo/doc/static/js: no such file or directory
7:55:56 AM: Error: Error building site: failed to render pages: render of "home" failed: execute of template failed: template: index.html:41:7: executing "index.html" at <partial "javascript.html" .>: error calling partial: "/opt/build/scientific-python-hugo-theme/layouts/partials/javascript.html:17:11": execute of template failed: template: partials/javascript.html:17:11: executing "partials/javascript.html" at <readDir $jsDir>: error calling readDir: failed to read directory "static/js": open /opt/build/repo/doc/static/js: no such file or directory

Out of curiousity, I checked (#135) whether the theme worked with 0.93.2 without the change from #132 and it doesn't:

8:01:06 AM: Start building sites …
8:01:06 AM: hugo v0.93.2-643B5AE9+extended linux/amd64 BuildDate=2022-03-04T12:21:49Z VendorInfo=gohugoio
8:01:06 AM: ERROR 2022/03/04 16:01:06 render of "section" failed: execute of template failed: template: _default/section.html:8:7: executing "_default/section.html" at <partial "css.html" .>: error calling partial: "/opt/build/scientific-python-hugo-theme/layouts/partials/css.html:48:11": execute of template failed: template: partials/css.html:48:11: executing "partials/css.html" at <readDir $cssDir>: error calling readDir: failed to read directory "assets/css": open /opt/build/repo/doc/assets/css: no such file or directory
8:01:06 AM: ERROR 2022/03/04 16:01:06 render of "page" failed: execute of template failed: template: _default/single.html:8:7: executing "_default/single.html" at <partial "css.html" .>: error calling partial: "/opt/build/scientific-python-hugo-theme/layouts/partials/css.html:48:11": execute of template failed: template: partials/css.html:48:11: executing "partials/css.html" at <readDir $cssDir>: error calling readDir: failed to read directory "assets/css": open /opt/build/repo/doc/assets/css: no such file or directory
8:01:06 AM: ERROR 2022/03/04 16:01:06 render of "page" failed: execute of template failed: template: _default/single.html:8:7: executing "_default/single.html" at <partial "css.html" .>: error calling partial: "/opt/build/scientific-python-hugo-theme/layouts/partials/css.html:48:11": execute of template failed: template: partials/css.html:48:11: executing "partials/css.html" at <readDir $cssDir>: error calling readDir: failed to read directory "assets/css": open /opt/build/repo/doc/assets/css: no such file or directory
8:01:06 AM: ERROR 2022/03/04 16:01:06 render of "page" failed: execute of template failed: template: _default/single.html:8:7: executing "_default/single.html" at <partial "css.html" .>: error calling partial: "/opt/build/scientific-python-hugo-theme/layouts/partials/css.html:48:11": execute of template failed: template: partials/css.html:48:11: executing "partials/css.html" at <readDir $cssDir>: error calling readDir: failed to read directory "assets/css": open /opt/build/repo/doc/assets/css: no such file or directory
8:01:06 AM: Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:8:7: executing "_default/single.html" at <partial "css.html" .>: error calling partial: "/opt/build/scientific-python-hugo-theme/layouts/partials/css.html:48:11": execute of template failed: template: partials/css.html:48:11: executing "partials/css.html" at <readDir $cssDir>: error calling readDir: failed to read directory "assets/css": open /opt/build/repo/doc/assets/css: no such file or directory

@netlify
Copy link

netlify bot commented Mar 4, 2022

✔️ Deploy Preview for scientific-python-hugo-theme ready!

🔨 Explore the source changes: cf2388a

🔍 Inspect the deploy log: https://app.netlify.com/sites/scientific-python-hugo-theme/deploys/622296b73da3650008f1f52e

😎 Browse the preview: https://deploy-preview-134--scientific-python-hugo-theme.netlify.app

@jarrodmillman jarrodmillman requested a review from stefanv March 4, 2022 16:04
@jarrodmillman jarrodmillman merged commit ca252d0 into scientific-python:main Mar 4, 2022
@jarrodmillman jarrodmillman deleted the hugo-0.93.2 branch May 2, 2022 16:17
@jarrodmillman jarrodmillman added this to the 0.1 milestone Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant