Hi guys,
I'm trying to understand how to do some things in Hobix involving
skel files. Here's the situation:
I've got a site (the new Ruby site) that uses Hobix, but for most
pages the entries listed shouldn't have a date or author, they should
just look like nice paragraphs/divs on a page. I got that working by
adding entries in hobix.yaml so it looks like:
entries: |
<div id="archives">
<% entries.each_day do |day, day_entries| %>
<div>
<+ day_header +>
<% day_entries.each do |entry| %>
<p><+ entry +></p>
<% end %>
</div>
<% end %>
</div>
The original in site_ruby/1.8/hobix/out/quick.rb looked like:
def entries_erb
%{ <div id="archives">
<ul>
<% entries.each_day do |day, day_entries| %>
<li><+ day_header +>
<ul>
<% day_entries.each do |entry| %>
<li><+ entry +></li>
<% end %>
</ul>
</li>
<% end %>
</ul>
</div> }
end
Yay! The pages in the site now look much better... unfortunately
this also changed the "news" page. I want the news page to have the
old look, with dates and list elements and stuff. I thought I could
do this by creating a news/index.html.quick-summary page, but that
doesn't seem to be the way.
So, hobix-is-the-way, what is the right way to change the layout of
one section?
Ben
_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way