Assemble を自分のニーズに合わせるのに苦労していますが、それが仕事に適したツールではない可能性があることを喜んで認めています。
単一の json データソースが必要です。いう:
{
blogindex: {
blogs: [
{
name: "Blog1",
posts: ["Post1","Post2]
},
{
name: "Blog2",
posts: ["Post3","Post4]
}
]
}
}
そして、同様のフォルダ構造を持つサイトを生成します:
blogindex/
index.html
blog1/
index.html
posts/
post1.html
post2.html
blog2/
index.html
posts/
post3.html
post4.html
正確な構造はそれほど重要ではありませんが、単一のデータソースを使用して階層構造を生成しようとして行き止まりに陥っています。
独自の「blog-1.json」を持つ各ブログを試しましたが、どちらも成功しませんでした。