-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
"Bad character" for valid YAML keys #1474
Comments
This is a restriction of the Go template parser/lexer. Try to quote the key on the calling side. If that works, please close this issue. If you want hyphens unquoted in keywords in Go templates, please open an issue here: |
Please reopen if you still believe there is something Hugo should do about this. |
|
Sorry to hijack this one a bit. I'm trying to quote on the calling side like:
but it gives: Is there a way to access the data collection ( |
The interesting about open source and collaboration is "when you're trying to solve your problem you can solve for others". The point is, I came here because of other different issues. For your question @marceloverdijk I hope you solved this, in case not and to let register plese check it it can help you: |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Supposing you have a YAML data file called commits.yml that looks like this:
Attempting to reference this data file in a template yields:
The text was updated successfully, but these errors were encountered: