I think the basic way to manage pages of jacqual, i.e. by creating .md file / folders under the root folder, Bit messy
In this way I want to show every page in the folder called "Page". In addition, I want to keep these pages a cascade structure: My folder has a structure:
page | - & gt; Parent1 | - & gt; Index.html | - & gt; Son1.html | - & gt; Son2.html | - & gt; Parent 2 | - & gt; Index.html Then in the page-list page, this should be something like this:
page entry * parent 1 * son1 * son2 * parent2 < / Code> And in addition, other * .html files that are not below the page folder should not be shown in this page-list page.
How should I do this?
Thanks a lot.
This does not prevent you from doing so. In the above scenario, yourdomain.tld / pages / prent1 / The URL of son1.html parent1 / son1 will be.
Creating nested lists, however, will be more complex. You can either use that post in the YAML front-mater or use the post.
Page | - & gt; Parent1 | - & gt; _posts / | - & gt; Index.html | - & gt; Son1.html | - & gt; Son2.html | - & gt; Parent2 - & gt; _posts | - & gt; Index.html = & gt; This way your files will be categories of categories of parents 1 and parents, and you can create listings by displaying categories and their content.
If you really want to display a tree structure without using posts and categories, you have to do more black magic but fortunately, liquid provides a split filter That you can use to break the path of the site, e.g. for {{Page.url | page} in {% site.pages%} Partition: '/' | Instead of joining them (it's completely for launch), you want to populate an array that holds the tree structure and then to display the directory tree later on to walk on that array again . It is possible but not easy and I do not think there is something easily available. Perhaps the plugin is easy to write.
No comments:
Post a Comment