문제

I'm building a website with nanoc. I have my main index file and now I want to add a article section with some articles I've written. So I use:

nanoc create_item articles

to create this new section, but how do I create new items within this item I just created?

The url tree I want to achieve would be:

index.html
/articles/index.html
/articles/one.html
/articles/two.html

I now this is very basic stuff but I can't find any examples on the nanoc documentation.

도움이 되었습니까?

해결책

You can use nanoc create_item articles/two, or you can simply create /articles/two.html manually. The create_item command is there for your convenience but you can easily create items by hand as well.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top