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

Server doesn't work #71

Open
romainl opened this issue Aug 28, 2019 · 4 comments
Open

Server doesn't work #71

romainl opened this issue Aug 28, 2019 · 4 comments
Assignees

Comments

@romainl
Copy link
Contributor

romainl commented Aug 28, 2019

As per #70

I was unable to get the server commands to work

$ hugo server -DF

results in:

ERROR 2019/08/28 11:25:51 Failed to add template
"_default/list.html" in path "_default/list.html": template: _default/list.html:12: unexpected "=" in operand
Total in 224 ms
Error: Error building site: logged 1 error(s)
@romainl romainl self-assigned this Aug 28, 2019
@alerque
Copy link

alerque commented Aug 28, 2019

Works for me. I just installed Hugo (0.57.2 extended), cloned this repository, and ran the command. Are you sure you have Hugo built with the extended option (or installed from a package manager that enabled them)?

@shlomif
Copy link
Contributor

shlomif commented Aug 28, 2019

@romainl
Copy link
Contributor Author

romainl commented Aug 28, 2019

The template makes use of the new-ish = operator

https://gohugo.io/templates/introduction/#variables

Looks like you are using an older Hugo. As stated in the README you should use "0.55 extended" or newer.

@romainl
Copy link
Contributor Author

romainl commented Aug 28, 2019

@shlomif I tend to agree on the need for CI but the issue at hand is on a user's machine where no amount of CI could be of help.

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

No branches or pull requests

3 participants