Skip to content

Conversation

@jarrodmillman
Copy link
Member

@jarrodmillman jarrodmillman commented Mar 8, 2024

With 0.123.8 (it worked fine with 0.123.2 and 0.123.7), we get this error:

Error: error building site: render: failed to render pages: render of "page" failed: "/home/jarrod/src/hugo/numpy.org/themes/scientific-python-hugo-theme/layouts/_default/baseof.html:9:7": execute of template failed: template: _default/single.html:9:7: executing "_default/single.html" at <partial "css.html" .>: error calling partial: "/home/jarrod/src/hugo/numpy.org/themes/scientific-python-hugo-theme/layouts/partials/css.html:43:34": execute of template failed: template: partials/css.html:43:34: executing "partials/css.html" at <resources.ExecuteAsTemplate>: error calling ExecuteAsTemplate: type <nil> not supported in Resource transformations

With 0.123.7, this

{{- $sass := append (resources.Get "theme-css/sphinx-design/index.scss")
                    (resources.Get "theme-css/pst/pydata-sphinx-theme.scss")
                    (resources.Get "theme-css/spht/index.scss")
                    (resources.Match "theme-css/*.scss")
           | append (resources.Match "css/*.scss") -}}

{{ $sass }}

resulted in

[/theme-css/sphinx-design/index.scss /theme-css/pst/pydata-sphinx-theme.scss /theme-css/spht/index.scss /css/tabs.scss] 

with 0.123.8 it produces

[/theme-css/sphinx-design/index.scss /theme-css/pst/pydata-sphinx-theme.scss /theme-css/spht/index.scss tabs.scss] 

The difference is with 0.123.7 we got

/css/tabs.scss

with 0.123.8 we get

tabs.scs

@jarrodmillman jarrodmillman marked this pull request as draft March 8, 2024 20:58
@netlify
Copy link

netlify bot commented Mar 8, 2024

Deploy Preview for numpy-org failed.

Name Link
🔨 Latest commit 52fb904
🔍 Latest deploy log https://app.netlify.com/sites/numpy-org/deploys/65ebefdc72d1650008e8a1a3

@jarrodmillman
Copy link
Member Author

jarrodmillman commented Mar 12, 2024

May be related to gohugoio/hugo#12214

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