vimways.org icon indicating copy to clipboard operation
vimways.org copied to clipboard

Server doesn't work

Open romainl opened this issue 6 years ago • 4 comments

As per https://github.com/vim-advent-calendar/vimways.org/pull/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 avatar Aug 28 '19 11:08 romainl

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)?

alerque avatar Aug 28 '19 11:08 alerque

I still think we should have CI to avoid the "works for me" syndrome. See: https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md#what-do-continuous-integration-ci-services-such-as-travis-ci-jenkins-or-appveyor-provide and https://github.com/shlomif/testing-static-sites . I can try working on it.

shlomif avatar Aug 28 '19 11:08 shlomif

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 avatar Aug 28 '19 12:08 romainl

@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.

romainl avatar Aug 28 '19 12:08 romainl