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

syna needs extended Hugo edition #27

Open
joelsherrill opened this issue Jan 26, 2020 · 1 comment
Open

syna needs extended Hugo edition #27

joelsherrill opened this issue Jan 26, 2020 · 1 comment
Labels
good first issue Good for newcomers

Comments

@joelsherrill
Copy link

joelsherrill commented Jan 26, 2020

Trying to use syna-start with this version of Hugo and I think the requirement to use Hugo extended is not covered by the syna-start tutorial. It may be covered in the Syna theme documentation but I shouldn't have to dig through that for a simple getting started.

$ hugo version
Hugo Static Site Generator v0.63.1-CE9ACEB7 linux/amd64 BuildDate: 2020-01-23T20:08:20Z

I got this error trying the syna-start:

$ hugo server -D
Building sites … ERROR 2020/01/25 18:12:05 Failed to read Git log: Unknown option: -C
usage: git [--version] [--help] [-c name=value]
[--exec-path[=]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=] [--work-tree=] [--namespace=]
[]
WARN 2020/01/25 18:12:05 .File.Dir on zero object. Wrap it in if or with: {{ with .File }}{{ .Dir }}{{ end }}
Built in 180 ms
Error: Error building site: logged 1 error(s)

I went through the Hugo getting started and built a one page website with the ananke theme. It works. I switch to syna and get a similar but more informative error message.

$ hugo server -D
Building sites … WARN 2020/01/25 18:10:31 .File.Dir on zero object. Wrap it in if or with: {{ with .File }}{{ .Dir }}{{ end }}
ERROR 2020/01/25 18:10:31 Transformation failed: TOCSS: failed to transform "main.scss" (text/x-scss): this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information
Built in 116 ms
Error: Error building site: logged 1 error(s)

Following the goo.gl link for more information, it looks like syna assumes features from the extended version of Hugo. If this is correct, it would be appreciated it you could confirm this and then update the documentation.

@stp-ip
Copy link
Member

stp-ip commented Jan 27, 2020

Thanks for bringing this up. You are correct the extended version is necessary. This is the case for quite a bit so we probably missed mentioning this. Happy for a PR to add this to the readme from a users point of view, if you want.

@stp-ip stp-ip added the good first issue Good for newcomers label Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Development

No branches or pull requests

2 participants