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

error deploy mainroad netlify #109

Closed
fervilber opened this issue Jan 3, 2019 · 4 comments
Closed

error deploy mainroad netlify #109

fervilber opened this issue Jan 3, 2019 · 4 comments

Comments

@fervilber
Copy link

When deploying a website from Github on netlify using mainroad hugo theme I receive the following message:
ERROR: ...template.go:477: template: theme/partials/footer.html:5: function "now" not defined
3:04:05 PM: ERROR: 2019/01/03 .... template.go:477: template: theme/partials/sidebar.html:1: function "newScratch" not defined
3:04:05 PM: ERROR: 2019/01/03 ... general.go:212: Error while rendering taxonomy tag: template: /opt/build/repo/themes/Mainroad/layouts/_default/baseof.html:15:23: executing "/opt/build/repo/themes/Mainroad/layouts/_default/baseof.html" at <.OutputFormats.Get>: can't evaluate field OutputFormats in type *hugolib.Node

@Vimux
Copy link
Owner

Vimux commented Jan 3, 2019

Hello, @fervilber

Looks like that you use very old Hugo version. Mainroad depends from Hugo 0.43 as a minimum version. It should work correctly in that (or newer) version.

@fervilber
Copy link
Author

Thanks, ... netlify uses 0.2 Hugo version, so it will be the problem.
A pity I like mainroad

@Vimux
Copy link
Owner

Vimux commented Jan 3, 2019

It's not a problem. Please read Host on Netlify. I'm sure that Netlify have similar documentation.

https://mainroad.netlify.com

@Vimux Vimux closed this as completed Jan 3, 2019
@fervilber
Copy link
Author

Thanks a lot, my test at last works fine. I got it to work by creating a new variable in netlify: HUGO_VERSION = 0.53.
It was not a problem of the theme.

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

2 participants