Skip to content

Valid XHTML

Valid XHTML 1.0 TransitionalToday, i spent some hours declutting the template of this blog. Now it should be XHTML Valide again.

Emphasize Current Tab in Andreas06

I adjusted the andreas06 template so the current tab is emphasized now.
<ul>
<li{strip}
{if $head_subtitle == "" && !$archives} id="current"{/if}>
<a href="{$serendipityBaseURL}">Site Home</a></li>
{/strip}
<li {strip}
{if $archives}
id="current"
{/if}
><a href="/archive">Archiv</a></li>{/strip}
<li {strip}
{if $head_subtitle|regex_replace:"/.*(howto)/":"howto" == "howto"}
id="current"{/if}
><a href="/plugin/tag/howto">HowTos</a></li>{/strip}
<li {strip}
{if $head_title == "Sonstiges"}
id="current"
{/if}
><a href="/pages/sonstiges.html">Sonstiges</a></li>{/strip}
<li {strip}
{if $head_title == "About"}
id="current"
{/if}
><a href="/pages/about.html">About</a></li>{/strip}
<li {strip}
{if $head_title == "Kontaktformular"}
id="current"
{/if}
><a href="/pages/kontakt.html">Kontakt</a></li>{/strip}
</ul>

The whole code looks dirty but there is, as far as i know, no ultimate variable in s9y which contains the page name so I have to check many different.

This is an English post. My English isn't as good as I'd like it to be, so if you find a mistake please advise me of it. Just drop a comment or write me a mail

BOFH Excuses

Mit der unten stehenden Funktion, kann man die Zsh dazu bringen, bei einem Fehler ein BOFH Excuse auszugeben. Man braucht dafür die Zsh (logisch oder? :-) ), und fortune. Beides gibt im Paketmanagment der Distri eurer Wahl.
BarcTRAPZERR() { fortune bofh-excuses | tail -n 1}
(Gefunden irgendwo im Netz)