Closed garrett-sutton closed 4 months ago
Certainly! To achieve a dynamic categories button with a dropdown on your Jekyll blog's homepage, you can incorporate the following steps:
Sure, here's a more specific approach for implementing a dynamic categories button with a dropdown on your Jekyll blog's homepage using the standard minima theme:
Include jQuery:
Create the HTML Structure:
Implement Liquid Logic:
Integrate JavaScript/jQuery Functionality:
Optional Styling:
The 2 comments above are Gemini's response to these questions:
I have a GitHub pages blog that is posted by Jekyll. On the home page, I want a categories button that has a drop-down that dynamically generates the list of categories based on all of my posts. Can you help with what I need to put where?
I am using the standard minima theme. Can you give more specifics based on that?
In this issue I should implement the categories drop-down in addition to individual pages per category. The current categories button leads to a page that shows all posts by category. I'd like to just have additional pages per category.
The 2 comments above are Gemini's response to this question:
I have a GitHub pages blog that is posted by Jekyll. On the home page, I want a categories button that has a drop-down that dynamically generates the list of categories based on all of my posts. Can you help with what I need to put where?
I am using the standard minima theme. Can you give more specifics based on that?
Grace's feedback:
My thought really consider what that last point looks like. Ask a bit more about would it be better to have the more general categories at the top and more specific at the bottom?
Implement something that will make the Categories button at the top of the page a dropdown with each category in it.
TODO/idea for future posts. This is process rather than something that can be fixed with code In addition, consider when making posts with multiple categories that the "parent" category is just named the "parent." Based on my understanding, there is not a concept in jekyll that will allow you to have subcategories. But in the interest of keeping "sub-categories" in a place that is lower on the totem pole, prefix subcategories with
zz
. In doing this, the category page is at least always organized from big to small.0 - getting started
list of broad categories
zz - list of subcategories