How to create a topic structure with Jekyll / Liquid

Asked

Viewed 33 times

1

I’m trying to create a topic structure to simulate a direct link menu for the post. This structure would be similar to help manuals by topic or as the chapter structure of books.

The problem is how to do it, I thought of creating the structure in config.yml by defining a tag and a title for each topic and recursively checking if there is a sub-topic. I don’t think it’s the right way, but I’ve managed a structure like this:

http://pastebin.com/k07yPmAq

How I would go through this array, printing the titles and posts corresponding to these tags?

Or is there a better way?

Note: This will be on Github, so I can’t use plugins.

  • Why don’t you use a .json? something like : http://jsfiddle.net/87n3y798/ or Jekyll uses .yml?

  • Jekyll uses a . yml file for settings :)

  • still needs the answer?

  • Yes, I’m still waiting for an effective solution

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.