jekyll / jekyll

:globe_with_meridians: Jekyll is a blog-aware static site generator in Ruby
https://jekyllrb.com
MIT License
48.8k stars 9.94k forks source link

Is there a way to get the hierarchal view of nested categories. #2833

Closed thenderson21 closed 9 years ago

thenderson21 commented 9 years ago

My post are organized into grouping categories then more target categories. I am trying to figure out a way to generate directory indexes for each category. If the category is a parent category, I want it to list it's children, else display a list of the articles.

articles
    - Tutorials
         - PHP
        -  C#
         - JavaScript
   - Conventions
         -  Programming
         -  Amateur Radio 
/articles/index.html           <- Standard article listing page.
/articles/tutorials/index.html    <- List subcategories  `Tutorials` and `Conventions`.
/articles/tutorials/php/index.html    <- List all article of categories `["tutorials", "php"]`.
/articles/tutorials/php/article-title/index.php    <- The article
parkr commented 9 years ago

Nested categories is not a feature of Jekyll.

parkr commented 9 years ago

You can assign categories superficially via a data file.