package nice_title; # Shamelessly cadged from Rael's examples on the plugin docs pages, # http://www.blosxom.com/documentation/developers/plugins.html # Just use $nice_title::title_and_path in your flavour templates. use CGI qw/:standard/; sub start { 1; } sub head { my($pkg, $currentdir, $head_ref) = @_; $title_and_path = $blosxom::blog_title; # Firstly, are we viewing a category archive page? $blosxom::path_info and $title_and_path .= " - $blosxom::path_info" and return 1; # If not, it's probably a date-based page: path_info() =~ m!^(/\d.+)$! and $title_and_path .= " - $1"; 1; } 1;