<Palmik>
Hi guys. I would like to have one page (the index) identical to another (most recent post). My approach right now is to take the most recent post and add its copy to @items with it's identifier changed. The only problem (so far) I have with this approach is that it feels like a hack and that the .path of the copy of the item is different (since I have changed the identifier). Now, I could maybe solve to by assigning every item an atrribute :path that
<Palmik>
I hope irssi did not cut off the message.
<Palmik>
Maybe simple redirect would be better, I'm not sure.
<pepijndevos>
It did get cut of
<Palmik>
As suspected, well, the codepad paste contains the whole message.
<pepijndevos>
But uhm, can;t you have multiple index pages?
<pepijndevos>
I don;t know a thing about nanoc
<Palmik>
By index I meant 'the front' page.
<pepijndevos>
Yea, but I mean, can yu have 2 frontpages?
<pepijndevos>
I assume the front page is just a loop over some post items
<pepijndevos>
so if you do that twice, but on the second loop stop after the first item...
<Palmik>
Well, my intetion is for the front page to be just the first post.
<Palmik>
s/first/latest/
<pepijndevos>
yes… why can;t you do that?
<Palmik>
Hmm... I think I see what you mean. Yes, that should work, I will just have to create a separate template for the frontpage probably (since I will not refer to the item as @item but as posts[0] or whatever).
yogsototh has joined #nanoc
cDlm has quit [Ping timeout: 248 seconds]
feliciaan has joined #nanoc
kitallis has quit [Ping timeout: 268 seconds]
kitallis has joined #nanoc
cDlm has joined #nanoc
yogsototh1 has joined #nanoc
yogsototh has quit [Ping timeout: 256 seconds]
cDlm has joined #nanoc
gkarekinian has joined #nanoc
pavelkunc has joined #nanoc
pavelkunc1 has joined #nanoc
pavelkunc has quit [Ping timeout: 248 seconds]
pavelkunc has joined #nanoc
pavelkunc1 has quit [Ping timeout: 246 seconds]
cDlm has quit [Ping timeout: 268 seconds]
pavelkunc has quit [Quit: Leaving.]
jugglinmike has joined #nanoc
kitallis has quit [Ping timeout: 264 seconds]
kitallis has joined #nanoc
pavelkunc has joined #nanoc
yogsototh1 has quit [Remote host closed the connection]
alerante has joined #nanoc
pavelkunc has quit [Quit: Leaving.]
alerante has quit [Read error: Connection reset by peer]
alerante has joined #nanoc
cDlm has joined #nanoc
Palmik has quit [Ping timeout: 260 seconds]
Palmik has joined #nanoc
lynaghk has joined #nanoc
alerante has quit [Remote host closed the connection]
Palmik has quit [Ping timeout: 240 seconds]
alerante has joined #nanoc
cDlm is now known as VitamineD
alerante has quit [Remote host closed the connection]
<lynaghk>
Does anyone know how to pass a different markdown renderer to Slim?
<lynaghk>
I've done this before with a Haml-based nanoc site, but slim's template engine tower of babble is incomprehensible to me.
lynaghk has left #nanoc ["ERC Version 5.3 (IRC client for Emacs)"]