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

Template failed on first run #1

Closed
wsw70 opened this issue May 1, 2020 · 2 comments
Closed

Template failed on first run #1

wsw70 opened this issue May 1, 2020 · 2 comments

Comments

@wsw70
Copy link

wsw70 commented May 1, 2020

I am brand new to Hexo and found your theme being almost a perfect match for my needs.

I followed the Quick Start at Hugo site and just used your theme instead of ananke. The very first run of hugo crashes:

PS C:\temp\helloworld> hugo server -D
Building sites … ERROR 2020/05/01 12:06:59 render of "taxonomyTerm" failed: "C:\temp\helloworld\themes\ramium\layouts\_default\terms.html:7:22": execute of template failed: template: _default/terms.html:7:22: executing "main" at <.Paginator>: error calling Paginator: 'pager size' must be a positive integer
ERROR 2020/05/01 12:06:59 render of "taxonomyTerm" failed: "C:\temp\helloworld\themes\ramium\layouts\_default\terms.html:7:22": execute of template failed: template: _default/terms.html:7:22: executing "main" at <.Paginator>: error calling Paginator: 'pager size' must be a positive integer
ERROR 2020/05/01 12:06:59 render of "section" failed: "C:\temp\helloworld\themes\ramium\layouts\posts\list.html:7:17": execute of template failed: template: posts/list.html:7:17: executing "main" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
Built in 51 ms
Error: Error building site: failed to render pages: render of "home" failed: "C:\temp\helloworld\themes\ramium\layouts\index.html:34:37": execute of template failed: template: index.html:34:37: executing "main" at <first .Site.Params.TagsInHome (shuffle $randTags)>: error calling first: both limit and seq must be provided

I tried to replace your theme back with ananke and everything works so I belive the issue is with the theme and not the installation (I hope, sorry if this is not the case).

Not sure if this is related, but when reading your "Usage" section, I see that you write

When you manually create files by following quick start (step4), you should command hugo new posts/<filename>.md instead of hugo new posts/<filename>.md.

I am not sure where the difference between these two commands is?

@wsw70
Copy link
Author

wsw70 commented May 1, 2020

Ah, it looks like it works when I copied (verbatim) the example config.toml. I will look closer then but, if this is possible, you may consider adding a minimal config file example?

@rafed
Copy link
Owner

rafed commented May 1, 2020

a minimal config file is in under examplesite/ directory.

@rafed rafed closed this as completed May 2, 2020
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