-
Notifications
You must be signed in to change notification settings - Fork 208
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
Home lists projects instead of posts when number_of_posts < number_of_projects #93
Comments
The problem is of course in file layouts/index.html. For what I understood, the value of the variable This is my solution. I know you may not want to hardcode those values in the theme's code. |
Exactly. As expected, actually. So the proper solution is to define your own mainSections in |
Ok, thanks. |
Yeah, I agree, it's a little bit obscure. But then again, one can argue that users of the theme are expected to read Anyway, if I were @htr3n I would accept a pull request that documented this particular caveat in the |
I haven't had time to follow up all recent Hugo versions, still use oldie Hugo that works fine for me so far. The changes @nekr0z mentioned, I think, are in newer Hugo, aren't they? Before, there are not so many options apart from checking the type of posts. Perhaps the developers listened to the community and created those nice features. I can incorporate the new features when I have some spare time from work, currently totally underwater. Nonetheless, any PRs are appreciated. |
I close this since it was solved in #113 |
When there are less posts then projects, home page lists items belonging to portfolio instead of posts.
For example from the example site I deleted all posts except "creating a new theme" and "migrate from jekyll".
If I restart the server, portfolio items are displayed.
I don't know if it is the intended behavior, but for me it's confusing. At least it should be specified in the readme how to always show posts.
A method was expalined in issue #19, but code has changed, so it's no longer valid.
In my opinion it should be explained in the documentation.
The text was updated successfully, but these errors were encountered: