Converting an existing HTML/CSS/JS site to Jekyll with a nested Accordion


I want to convert my existing personal web site:

to a Jekyll site which for the data stuff is really just one big nested Accordion - ie under “_posts” there would be a tree structure of dirs and md files and these would be mirrored in the big accordion.

I have been messing around trying to learn how this might be possible but have only been able to do simple stuff so far - does anyone have anything resembling what I am trying to do already working?