Comments (9)
Same issue with master and v0.49. I fixed it by just removing pagination, because I don't really need it. I really like the theme, thanks a bunch.
Building sites … ERROR 2018/10/11 13:16:08 Error while rendering "taxonomyTerm" in "": template: _default/list.html:6:18: executing "_default/list.html" at <.Paginate>: error calling Paginate: cannot convert type hugolib.PagesGroup to Pages
Building sites … ERROR 2018/10/11 13:18:48 Error while rendering "home" in "": template: index.html:5:16: executing "index.html" at <.Paginate>: error calling Paginate: cannot convert type hugolib.PagesGroup to Pages
from charaka-hugo-theme.
@pappayain, I'm able to re-create the issue with your steps and have put in a fix to solve this. If you are still looking to get it fixed then take the latest code. The issue was to do with pages being empty as its a new site and those pages were being fed into PageGroups which always errored.
from charaka-hugo-theme.
@pappayain not sure how you are using it. I just tested it with latest 0.49 version of hugo and it works fine.
To test it yourself follow this steps, create a test folder and do the following. Assuming hugo is installed and accessible.
- $hugo new site charak-theme-test
- $cd charaka-theme-test/themes
- $git clone [email protected]:natarajmb/charaka-hugo-theme.git
- $cd charaka-theme-test/themes/charaka-hugo-theme
- $cp -r exampleSite/* ../../
- $cd ../../
- $hugo server -D
navigate to http://localhost:1313 you should see the sample site.
from charaka-hugo-theme.
Yes, if I copy content folder of example site, then it works. But if I follow the quick start guide at https://gohugo.io/getting-started/quick-start/ and replace the theme with charaka-hugo-theme then it just fails.
from charaka-hugo-theme.
$hugo version
Hugo Static Site Generator v0.49/extended darwin/amd64 BuildDate: unknown
$hugo new site quickstart
Congratulations! Your new Hugo site is created in /tmp/quickstart.
$cd quickstart
$git init
Initialized empty Git repository in /private/tmp/quickstart/.git/
$git submodule add https://github.com/natarajmb/charaka-hugo-theme.git themes/charaka-hugo-theme
Cloning into '/private/tmp/quickstart/themes/charaka-hugo-theme'...
remote: Enumerating objects: 151, done.
remote: Counting objects: 100% (151/151), done.
remote: Compressing objects: 100% (89/89), done.
remote: Total 151 (delta 65), reused 129 (delta 43), pack-reused 0
Receiving objects: 100% (151/151), 1.12 MiB | 542.00 KiB/s, done.
Resolving deltas: 100% (65/65), done.
$cp -vf themes/charaka-hugo-theme/exampleSite/config.toml .
themes/charaka-hugo-theme/exampleSite/config.toml -> ./config.toml
$hugo new posts/my-first-post.md
$hugo server
Building sites … ERROR 2018/10/05 17:18:45 Error while rendering "home" in "": template: index.html:5:14: executing "index.html" at <.Paginate>: error calling Paginate: cannot convert type hugolib.PagesGroup to Pages
Total in 42 ms
Error: Error building site: logged 1 error(s)
from charaka-hugo-theme.
Use this "post" instead of "posts" and see if the error goes away. If it does then I will update the template.
$hugo new post/my-first-post.md
from charaka-hugo-theme.
Check out the latest code and it should work now with "posts"
from charaka-hugo-theme.
No response from the initial reporter closing as its fixed.
from charaka-hugo-theme.
Same issue with master and v0.49. I fixed it by just removing pagination, because I don't really need it. I really like the theme, thanks a bunch.
Building sites … ERROR 2018/10/11 13:16:08 Error while rendering "taxonomyTerm" in "": template: _default/list.html:6:18: executing "_default/list.html" at <.Paginate>: error calling Paginate: cannot convert type hugolib.PagesGroup to Pages
Building sites … ERROR 2018/10/11 13:18:48 Error while rendering "home" in "": template: index.html:5:16: executing "index.html" at <.Paginate>: error calling Paginate: cannot convert type hugolib.PagesGroup to Pages
Hi bro,I just remove it and it works now,but i wonder if some issues will be produced,cause i don't know this removed file's function.
from charaka-hugo-theme.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charaka-hugo-theme.