<
mikey_p>
I'd like to make my index.html just show the same content as my latest blog post
<
mikey_p>
is there an easy way to do this? (i'm using the blogging helper)
louquillio_ has quit [Read error: Connection reset by peer]
louquillio_ has joined #nanoc
VitamineD_ has joined #nanoc
irsol_ has joined #nanoc
VitamineD has quit [Ping timeout: 276 seconds]
koan_ has joined #nanoc
koan has quit [Ping timeout: 258 seconds]
irsol has quit [Ping timeout: 258 seconds]
irsol_ has quit [Changing host]
irsol_ has joined #nanoc
irsol_ is now known as irsol
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Ping timeout: 252 seconds]
VitamineD_ is now known as VitamineD
<
ddfreyne>
mikey_p: <%= sorted_articles.first.compiled_content %>
<
ddfreyne>
mikey_p: Putting that on your erb-filtered home page will do the trick
<
ddfreyne>
mikey_p: If the title is stored in metadata, you will need to show it too
VitamineD has joined #nanoc
VitamineD has quit [Quit: Computer has gone to sleep.]
alerante has joined #nanoc
alerante has quit [Ping timeout: 240 seconds]
VitamineD has joined #nanoc
jugglinmike has joined #nanoc
alerante has joined #nanoc
alerante has quit [Ping timeout: 276 seconds]
alerante has joined #nanoc
Deledrius_ has joined #nanoc
Deledrius_ is now known as Deledrius
FunkyPenguin has joined #nanoc
VitamineD has quit [Ping timeout: 252 seconds]
<
mikey_p>
ddfreyne: thanks, is there any way to assign the title with erb? or does it have to be in the metadata?
<
bobthecow>
mikey_p: you could use content capturing
<
bobthecow>
you could also set a variable in the item and reference it in the layout.
<
bobthecow>
<% @title = 'foo' %> (in the item)
<
bobthecow>
<title><%= @title || 'some default title' %></title>
<
mikey_p>
awesome, thanks
<
bobthecow>
i tend to use content capturing, since it seems less hacky.
prxq has joined #nanoc
VitamineD has joined #nanoc
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Ping timeout: 276 seconds]
alerante has joined #nanoc
irsol has quit [Ping timeout: 252 seconds]
irsol has joined #nanoc
irsol has quit [Ping timeout: 240 seconds]
<
mikey_p>
is there a way to control layout by item[:kind] instead of the path?
irsol has joined #nanoc
<
mikey_p>
errr nevermind
irsol has quit [Ping timeout: 252 seconds]
irsol has joined #nanoc
louquillio_ has quit [Remote host closed the connection]
louquillio_ has joined #nanoc