Hi,
>> Well, it seems that it was "website.link_to_current_page" option,
>> which is missing now and "generated links now always use the HTML <a>
>> tag", as "Upgrading from 0.5.x" says.
>>
>> Any rationale for this change of behavior? Is there any way to revert
>> to behavior of "website.link_to_current_page = false"?
>
> No, it is currently not possible to this.
>
> I have looked through some CMS and saw that most of them format a link
> to the current page as `<a>` element which is probably the 'right way'
> to do it since one did want to have a link in the first place.
It's debatable whether it's a good idea or not to remove self-links,
but I guess at least the opportunity to do so is definitely a good
thing. Especially if this feature was available in previous versions.
Generally, right now there's only one major misunderstanding with this
change: pre-webgen-1.0 templates that relied on <span> behavior to
highlight current language in langbar should be rewritten to use CSS
class "webgen-langbar-current-lang" to designate current language.
> It also simplified many CSS rules for the (former) built-in templates
> because the `<span>` tags did need to be handled differently.
>
> However, if this functionality is needed again I can re-introduce it in
> the next update.
So far I've solved my problem with postprocessing - just running sed
that blatantly replaces <a href="file.html">...</a> to
<span>...</span> for any given file.html, iterating it for every file
in the output.
Probably it's possible to do so without external processing, with
proper modification of webgen rendering pipeline, but I still haven't
figured it out how to do it.
--
WBR, Mikhail Yakshin