> The problem is that the code in tagging.rb:
>
> def link_for_tag(tag, base_url)
> %[<a href="#{base_url}#{tag}" rel="tag">#{tag}</a>]
> end
>
> Has no trailing slash on the tag link.
Hi,
This should usually not be a problem (web servers will redirect from
the /-less URL to the /-ful URL) but it is probably best if you modify
the code so that it adds the trailing slash. h3rald uses a custom
Tagging helper which does this; this modified Tagging helper
implements #tags_for like this (in lib/helpers.rb):
def tags_for(article)
article.attributes[:tags].map do |t|
%{<a class="tag" href="/tags/#{t}/">#{t}</a>}
end.join " · "
end
Generally speaking, nanoc's helpers are provided for convenience, but
they are by no means always the most powerful or the most feature-
complete. If you feel that some helper doesn't quite suit your needs,
by all means take the code and tweak it until it works for you! :)
Regards,
Denis
--
Denis Defreyne
denis.d...@stoneship.org