私のドキュメントフォルダは以下のような構造です
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
こんなマイメニュー構造
ホーム | 私たちについて | インテリア | 外観 | ギャラリー | 投稿 | コンタクト
ページ集をリストアップしてメニューを作ったら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
interior/exterior フォルダーからページを一覧表示して、Interior と Exterior のサブメニュー項目を追加するにはどうすればよいですか?
少し早いですがお礼を!