-
Notifications
You must be signed in to change notification settings - Fork 51
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
content order is inconsistent #32
Comments
How are you sorting the pages in the main section? Eg what's the front-matter of |
Hmm. I didn't create a main section, the folder tree of I initially want to create 3 sections, blog, about, and categories, but it seems I got the same problem as this. That is why, currently I added a new front-matter in my posts, So in my web, now Do you have a suggestion how should I create sections (the foldering) and make it work? e.g. what script should I add/edit in which file. And when you say "(which is not present in this repo, not great)", do you mean, my repo, or this hyde repo? 😅 And, thanks for the response btw 🥂 |
This repo, the hyde one. It should have a working example and an updated README, I'll do that tonight if I remember. For this theme, all the articles in the content/ directory will be essentially the blog post and you can create the about section separately. Categories sound like taxonomies and you should probably use Zola itself rather than creating your own section. The layout should be something like:
|
I reorganize my web foldering in github, now use a *duplicated submodule to put the
I think the ordering issue is fixed now, I don't see the post ordering changes every time I update the file. But I still have this issue where the index.html shows nothing. *I duplicated the original hyde repo, because I adjust some of the file and it requires me to push to the original repo in different branch, I'm not so familiar with submodule, I'm afraid this means a merge request to the hyde master branch, hence I opt for a safer way 🙃 |
Why are you nesting the blog in content? This theme expects all the articles to be in the root of the folder so it's normal that nothing is showing. Move all the files/folders from content/blog/ to content/ and it should work. |
ah, I see. It's working now But now the
My workaround currently is to add this in the
I guess this is expected? |
Also, I think it is good to add the expected folder tree in the documentation, just like what you said here
probably like this(?)
I opened a pull request for this if you don't mind. |
The ordering part of the
index.html
seems to be inconsistent in my end.Sometime when I add
| reverse
it actually sort the post descendingly by its date (which is I wanted to be), but the other time it is ascending. How to properly sort the posts by its date in descending order?The text was updated successfully, but these errors were encountered: