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

parse failed: template: unexpected "=" in operand #5563

Closed
zhcppy opened this issue Dec 25, 2018 · 3 comments
Closed

parse failed: template: unexpected "=" in operand #5563

zhcppy opened this issue Dec 25, 2018 · 3 comments
Labels

Comments

@zhcppy
Copy link

zhcppy commented Dec 25, 2018

partials/work.html
...
11 {{ $categories := slice }}
12 {{ range .Site.Data.work.portfolio }}
13 {{ $categories = $categories | append .category }}
14 {{ end }}
...

error info
parse failed: template: partials/work.html:13: unexpected "=" in operand

env
➜ goblog git:(master) ✗ go version
go version go1.10.3 darwin/amd64
➜ goblog git:(master) ✗ hugo version
Hugo Static Site Generator v0.54-DEV darwin/amd64 BuildDate: unknown
➜ goblog git:(master) ✗ uname -a
Darwin zhcppy.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64

But it works on my Macbook,I am sorry that I cannot provide my Macbook run env.

@pamubay
Copy link

pamubay commented Dec 25, 2018

update your go or download official binaries from releases
Variable overwrites works since go1.11

More info:
support for variable overwrite
Hugo 0.48 release notes

@zhcppy
Copy link
Author

zhcppy commented Dec 25, 2018

So that's it, Thank you very much!

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants