-
Notifications
You must be signed in to change notification settings - Fork 102
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
Date-driven indexes #354
Comments
This isn't supported yet but I want to be able to support it. The interesting thing will be deciding how users define these. I think Taxonomy templates are the closest thing in Hugo I think this is the closest thing in Gutenberg |
Other use cases besides date
Tags introduces the interesting situation of them not being ordered, so |
Considerations
Generally I've been trying to minimize configuration when it doesn't get in the way of the user getting their job done and I try to minimize duplicated information as long as it doesn't make the users job hard. |
We should also support pagination with this. Closing #219 in favor of this because I'm guessing we won't want to support pagination generally. |
Once I have a first working version of my blog with current cobalt 0.11.1, I think the first feature I'll need will be pagination :) Does anyone have started this? |
No one has started this from what I've heard. The first step is gathering requirements, seeing how others handle this, and creating a proposal. |
On tags, usually there is no point of having multiple tags in url as they are not ordered. For categories, as they have a hierarchy, we can have multiples categories in a url, if For pagination some config is needed (same as Jekyll)):
these will apply to all paginations if we want specific settings for tags or categories, we should have a way to override
For all these, no permalink, this concept is contradictory with pagination and pagination will create a or Gutenberg style: I don't like Hugo paginator object for some reason, maybe the But I like Hugo generating the paginator in a lazy fashion:
|
Thanks for starting to look into this! Below I explore some questions we'll need to address in coming up with this proposal
More generally
Plus my questions in my earlier post |
I do see value in |
FYI we're calling them |
If I got this right, categories have a hierarchy by definition: For tags, if we want
It seems the
Paginator object
Jekyll/Gutenberg gives access to immediate children, Hugo has a query language to dig deeper
For the moment I've put a global conf, overridable for tags and categories
For the moment, I'm thinking something like Jekyll: everything is paginated once the
I wasn't planning on this, I was thinking
So, no, as I wasn't planning to mix them ^^
Nope, it was a first post to see your thoughs ^^ I need to think about it, I'm not even
good question, need to see how an index is build currently. What do we have as indexes at the moment?
I see the value too, it's just the combinatorial that scares me. Maybe a config to limit |
This was more about
On a related note:
By Some systems treat the index as a special page. Other systems don't care and it can be any page. My expectation has been that index and pagination configuration would end up living in the index's frontmatter. It could then be globally configured by setting default frontmatter fields. That doesn't mean it has to. If every page can be an index/paginated, we'll need to watch out for how people can globally define default frontmatter for this without turning every page into an index.
What does this paginator object look like? Of the ones you linked, I didn't see anything regarding child indexes. Also, how does pagination apply to child indexes? Not at all?
We'll want to eventually write up specifically how this applies to cobalt, particularly the fact that the jekyll paginator is no longer developed though there seems to be other paginator plugins |
some configuration in
or maybe
where categories are defined like in #131 so we'll have
Nested? Now that I understand what an index is, what do you mean by nesting them?
So a page will be an index if it has index/pagination configuration in its frontmatter?
I don't know if |
Thanks for continuing to look into this! Could you collect all of your thoughts into an RFC issue so we can see how all of the pieces fit together? |
What's an RFC issue? |
Basically open an issue that is just us planning this feature. The issue will be the proposal and we'll edit it as we refine the idea. Kind of like what I've been doing with #301 and other planning issues. |
At least, catched some time to do this #395 ^^ |
Shall we close this and do it in #395 ? |
Yeah, seems like we could close this for #395. |
I'd like to be able to have index files generated in the various year, month and day directories for my posts.
That way, visiting these pages would show the posts as one might expect:
/posts/
-> show all/posts/2018/
-> show posts from 2018/posts/2018/01/
-> show posts from January, 2018Is this possible with Cobalt? I didn't see anything for that in the docs.
The text was updated successfully, but these errors were encountered: