A fix and a problem

MenTaLguY mental at rydia.net
Mon Sep 4 00:37:02 EDT 2006


On Sun, 2006-09-03 at 22:33 +0200, Paul van Tilburg wrote:
> 1) The tags plugin creates odd links and uses weblog.link which doesn't
>    work well if you're staging the blog locally first.
>    A small patch to resolve this:
> 
> --------
> --- lib/hobix/plugin/tags.rb    (revision 135)
> +++ lib/hobix/plugin/tags.rb    (working copy)
> @@ -38,7 +38,7 @@
>          <ul>
>          <% tags_list(weblog.storage.find).sort.each do |name, count| %>
>            <li>
> -            <a href="<%= weblog.link %>/tags/<%=name%>/index.html"><%= name
> +            <a href="<%= weblog.expand_path( "/tags/#{ name }/" )
> %>"><%= name
>              %></a>:&nbsp;<%=count%>
>            </li>
>          <% end %>

Applied.

-mental
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20060904/29e72209/attachment.bin 


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