miscellaneous suggestions for the next hobix release

why the lucky stiff why at hobix.com
Tue Sep 28 16:51:03 EDT 2004


William Morgan (wmorgan-hobix-is-the-way at masanjin.net) wrote:
>   * in sidebar_archive_erb, change to:
>       <% months.reverse.each do |month_start, month_end, month_id| %>

Good, done.

>   * in page_erb, add a <+ footer +> section (and corresponding erb
>     method, which can be empty by default)

As well.

>   * in entries_erb, before <li><+ day_header +></li>, add:
>       <a name="<%= day.strftime( "%Y%m%d" ) %>"/>
>     (a calendar plugin would find this useful)

And check.

>   * feel free to add the section_map code :)

What does everyallbody think?  I like it.  Add it?

>   * in load_entry, change the:
>       e.link = @link + id + ".html"
>     to something that handles a lack of a trailing slash (you probably
>     have this already)

Yeah, I think I got em.

>   * add a 'section' and 'section_link' method

See Hobix::Entry#section_id.  A section_link can be built with
weblog.expand_path( entry.section_id ).

>   * maybe move the entry_proc code to a class method of Entry, such that
>     subclasses don't need to replicate it when they call
>     YAML::add_domain_type()

Hmm.  Considering.

_why


More information about the Hobix-is-the-way mailing list