I want to create a custom tag-like property #1401
Unanswered
patrykpalej
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I'm not going to describe exactly how this should be done, but you can learn about Jekyll's Collections to accomplish this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checklist
Is your feature request related to a problem? Please describe
I want to create a custom property which will act just like tags, but regardless of them. Something like "categories", but in fact they will be just a copy of "tags". We can call it
mytags
.In general it can be anything that somehow categorizes posts.
It's probably possible, but I cannot obtain this.
Describe the solution you'd like
I created:
mytags.md
in_tabs
folder and filled it analogously totags.md
mytags.html
in_layouts
. It is actually a copy oftags.md
butsite.tags
needed to be renamed. Actually how do you definesite.<something>
?I cannot figure it out how to gather the property values from all the posts and create subfolders in
_site/mytags
. There is only anindex.html
in that folder.Describe alternatives you've considered
No response
Additional context
I also considered having two separate blog-like tabs. The posts could all be stored in the same directory but there would be a property which determines which of these two the post belongs to. I tried doing this but the posts in the second tab don't display properly, probably because of pagination issues.
Would it involve modifying the underlying ruby gem or it can be done just by editing the template?
Beta Was this translation helpful? Give feedback.
All reactions