louquillio has quit [Remote host closed the connection]
louquillio has joined #nanoc
louquillio has quit [Remote host closed the connection]
louquillio has joined #nanoc
louquillio has quit [Quit: Leaving]
louquillio has joined #nanoc
louquillio has quit [Remote host closed the connection]
louquillio has joined #nanoc
Palmik has joined #nanoc
<Palmik>
Hi guys. I would like my index page to take data from the most recent article. I already have a sorted list of articles in a list 'posts' in a lib. helper. So I guess I need to add new item to @items that is the same as the most recent post except for the route or be able to compile/route not based on pattern match, but simply based on list of items.
<Palmik>
Oh, forgot to inherit the attributes. Anyway, the only problem seems to be that the @item.path (which I use for href) is now '/' (as is somewhat expected), but I would like it to be the path of the most recent post.
alerante has quit [Remote host closed the connection]
<Palmik>
Also, simply copying the item and then setting the article seems more straightforward.
<Palmik>
s/setting the article/setting the identifier/
bghost has quit [Ping timeout: 240 seconds]
louquillio has quit [Remote host closed the connection]
louquillio has joined #nanoc
rolfb has joined #nanoc
cDlm has quit [Quit: cDlm]
<Palmik>
Anyway, that solution is not exactly what I want -- the problem is that the result is not the same (even if I disregard the @item.path), it for example 'breaks' previous/next links.
<Palmik>
(the copy of the item that acts as the new index does not have the 'previous' 'next' links, because it was added to the @items array after the @items were sorted (these sorted items are then used to generate the 'previous' and 'next' links))
yogsototh has joined #nanoc
kitallis has joined #nanoc
yogsototh has quit [Remote host closed the connection]
yogsototh has joined #nanoc
pavelkunc has joined #nanoc
jugglinmike has joined #nanoc
rolfb has quit [Quit: Leaving...]
<guardian>
o/
bghost has joined #nanoc
kitallis has quit [Ping timeout: 246 seconds]
kitallis has joined #nanoc
bghost has quit [Ping timeout: 252 seconds]
louquillio_ has quit [Read error: Operation timed out]
<ddfreyne>
\o
cDlm has joined #nanoc
louquillio_ has joined #nanoc
cDlm has quit [Ping timeout: 268 seconds]
Palmik has quit [Quit: Lost terminal]
alerante has joined #nanoc
cDlm has joined #nanoc
jugglinmike has quit [Quit: Leaving.]
jugglinmike has joined #nanoc
xo__ has joined #nanoc
Segismond_ has quit [Ping timeout: 252 seconds]
louquillio_ has quit [Quit: Ex-Chat]
smkelly has quit [*.net *.split]
smkelly has joined #nanoc
yogsototh has quit [Ping timeout: 251 seconds]
yogsototh has joined #nanoc
yogsototh has quit [Ping timeout: 256 seconds]
pavelkunc1 has joined #nanoc
pavelkunc has quit [Ping timeout: 252 seconds]
pavelkunc1 has quit [Quit: Leaving.]
pavelkunc has joined #nanoc
kitallis has quit [Quit: Computer has gone to sleep.]
kitallis has joined #nanoc
kitallis has quit [Client Quit]
pavelkunc has quit [Quit: Leaving.]
bghost has joined #nanoc
bghost has quit [Quit: leaving]
louquillio_ has joined #nanoc
louquillio_ has quit [Remote host closed the connection]