sidebar calendar plugin
William Morgan
wmorgan-hobix-is-the-way at masanjin.net
Tue Sep 28 11:26:12 EDT 2004
Version 0.1 is out. Two small bugfixes (specifics below).
http://www.masanjin.net/~wmorgan/sidebar-calendar/
Excerpts from William Morgan's mail of 27 Sep 2004 (EDT):
> ## 4) If you want the <a name> jumping to work (very useful for
> ## monthly and yearly index pages), also place the following under
> ## hobix/out/quick:
> ## day_header: |
> ## <a name="<%= day.strftime( "%Y%m%d" ) %>"/>
> ## <h2 class="dayHeader"><%= day.strftime( "%A, %B %d, %Y" ) %></h2>
Apparently <a name> has to go across a span of text, or this won't
render correctly, at least in Firefox. So my new recommendation:
## day_header: |
## <a name="<%= day.strftime( "%Y%m%d" ) %>">
## <h2 class="dayHeader"><%= day.strftime( "%A, %B %d, %Y" )
%></h2>
## </a>
> ## 0) Right now, the sidebar is only updated if the last-modified time
> ## of any entry for that month changes. If you have other elements
> ## in your sidebar that change more frequently than that (e.g. a
> ## list of most popular entries), you'll have to hack the code
> ## yourself to get it to regenerate more often.
Or, of course, if you're using my very own section_map.rb, this won't do
the right thing either. So the default behavior now is to regenerate
every sidebar file when you upgen.
_why, what do you recommend? I could use another layer of SSI, putting
the calendar contents themselves in separate files---this wouldn't
eliminate all the file regeneration, but would lessen its cost. Or you
could add a mechanism for propagating last-modified times up through
the _erb methods... could get ugly.
--
William <wmorgan-hobix-is-the-way at masanjin.net>
More information about the Hobix-is-the-way
mailing list