How to create sub menu item within Docpad? -


my document folder structure below

index.html post/   post1.html   post2.html pages/   about.html   interior.html   exterior.html   gallery.html   post.html //listing blog post   contact.html   interior/     in1.html     in2.html     ...     in5.html   exterior/     ex1.html     ex2.html     ...     ex7.html   gallery/     img1,2,3,4 

my menu structure this

home | | interior | exterior | gallery | posts | contact

i create menu listing page collection, it's ok!

.navigation nav   ul.nav.topnav     li.dropdown.active       a(href='/')         | home     each doc in getcollection('pages').tojson()       - clazz = (document.url === doc.url) ? 'active' : null       li.dropdown(typeof="sioc:page", about=doc.url, class=clazz)         a(href=doc.url, property="dc:title")= doc.title 

how can add submenu item interior , exterior listing pages interior/exterior folder

thank in advance!

may use docpad-menu..?


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -