Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hugo -D, Wowchemy CMS Fault #56

Open
ybvau opened this issue Feb 24, 2022 · 1 comment
Open

Hugo -D, Wowchemy CMS Fault #56

ybvau opened this issue Feb 24, 2022 · 1 comment
Assignees
Labels
bug Something isn't working sprint/in progress current sprint's open issues

Comments

@ybvau
Copy link
Collaborator

ybvau commented Feb 24, 2022

Background:
Setting up the Wowchemy CMS to be used would make it easier for additional users to edit the content of the website. It would be more like Wordpress and less CLI-heavy, which could be useful for faster content creation and easier means of updating. It seems like it broke a while ago.

Issue:
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:5:3: executing "_default/single.html" at <partial "site_head" .>: error calling partial: "/var/folders/9w/nmr46vcn2jlb3nx3grfknssh0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-modules/[email protected]/layouts/partials/site_head.html:174:13": execute of template failed: template: partials/site_head.html:174:13: executing "partials/site_head.html" at <getenv "WC_POST_CSS">: error calling getenv: access denied: "WC_POST_CSS" is not whitelisted in policy "security.funcs.getenv"; the current security configuration is:

[security]
enableInlineShortcodes = true
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$']
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']

[security.funcs]
getenv = ['^HUGO_']

[security.http]
methods = ['(?i)GET|POST']
urls = ['.*']

Total in 2498 ms

Issue (2):
Hugo -D presents a similar issue, which leads me to think there's a fundamental problem for the build of the website. Looks like we need to update . . ? Will explore further

hugo v0.92.2+extended darwin/amd64 BuildDate=unknown
WARN 2022/02/24 12:43:18 .Path when the page is backed by a file is deprecated and will be removed in a future release. We plan to use Path for a canonical source path and you probably want to check the source is a file. To get the current behaviour, you can use a construct similar to the one below:

{{ $path := "" }}
{{ with .File }}
{{ $path = .Path }}
{{ else }}
{{ $path = .Path }}
{{ end }}

@ybvau ybvau added the bug Something isn't working label Feb 24, 2022
@ybvau ybvau self-assigned this Feb 24, 2022
@ybvau ybvau added the sprint/in progress current sprint's open issues label Feb 28, 2022
@twinblade02
Copy link
Collaborator

I think this has been resolved; marked for closure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sprint/in progress current sprint's open issues
Projects
None yet
Development

No branches or pull requests

3 participants