<bobthecow>
you should make an item for chapter_1 itself...
<bobthecow>
you can either have a chapter_1.md, a chapter_1/index.md, or you could make a magical one at runtime.
<bobthecow>
then you can use @item.children to get all the children.
<bobthecow>
loop through them and output compiled content
<bobthecow>
<% @item.children.each do |child| %>
<bobthecow>
<%= child.compiled_content %>
<bobthecow>
<% end %>
<bobthecow>
like i said, this can either be a generated item (see the tutorial about generating tag pages) or it can be an item from an actual file in your project.
<bobthecow>
which it is depends mostly on whether chapter_1 has its own title, an intro section, whatever.
jugglinmike has quit [Quit: Leaving.]
louquillio_ has quit [Remote host closed the connection]
louquillio_ has joined #nanoc
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Ping timeout: 240 seconds]
cDlm has quit [Read error: Connection reset by peer]
cDlm has joined #nanoc
VitamineD_ has joined #nanoc
cDlm has quit [Ping timeout: 272 seconds]
VitamineD_ has quit [Client Quit]
cDlm has joined #nanoc
<ctp>
bobthecow: oh, this sounds pretty cool! many thanks!
<bobthecow>
ctp: no problem. if you get stuck, let us know. we don't always answer immediately, but as long as you're down with async conversations you'll always get an answer :)
<ctp>
yepp :) i started with nanoc yesterday so absolutely newbie but coding in ruby for 8 years now, so it should be manageable :) maybe one last thing: making item for a directory -> where's the right place in nanoc for that?
<bobthecow>
meaning dynamic (runtime) items, right?
<bobthecow>
i do something very similar to that for my tag pages ^
alerante has joined #nanoc
alerante has quit [Ping timeout: 240 seconds]
prxq has joined #nanoc
cDlm has quit [Quit: Computer has gone to sleep.]
cDlm has joined #nanoc
cDlm has quit [Client Quit]
cDlm has joined #nanoc
prxq has quit [Ping timeout: 240 seconds]
<guardian>
o/
alerante has joined #nanoc
alerante has quit [Ping timeout: 240 seconds]
tlevine has quit [Quit: leaving]
tlevine has joined #nanoc
<ctp>
hi again :) i'm sure that is a well known issue: i'm just trying to copy a fonts/ folder from content to output by a simple item.identifier.chop + '.' + item[:extension] route. works fine as long as all files have different basenames. but in my case i have fontawesome-webfont.woff, fontawesome-webfont.ttf, fontawesome-webfont.svg which results in the typical
<ctp>
RuntimeError: Found 4 content files for content/assets/fonts/fontawesome-webfont; expected 0 or 1
<ctp>
how do you guys deal with that? is there maybe a much more simpler way just to copy a dir from content to output?