Axel Beckert [Tue, 22 Jul 2008 21:35:19 +0000 (21:35 +0000)]
Bugfix: The content type set via template was only honored during dynamic generation via CGI in the HTTP headers. The content type inside the (default) HTML templates was resp. had to be hard-coded. Made $content_type a global package variable so that it can be used inside templates.
Axel Beckert [Tue, 22 Jul 2008 02:11:53 +0000 (02:11 +0000)]
Make <guid> content a full URL by default (as Gavin had it in his broken patch, too) since it could be ambigous otherwise. Additionally, feed parsers can use the value it as permanent link and it is a good example on how to implement links to articles without the date in the URL.
Axel Beckert [Tue, 22 Jul 2008 02:01:34 +0000 (02:01 +0000)]
Bugfix: Default RSS feed failed feed validation at http://www.feedvalidator.org/ if there was a blank inside a file name since blanks (and other characters) need to be escaped inside an URL. Most browsers do this, but not all.
Axel Beckert [Tue, 22 Jul 2008 01:46:08 +0000 (01:46 +0000)]
Bugfix: Default RSS feed failed feed validation at http://www.feedvalidator.org/ if there was a blank inside a file name since blanks (and other characters) need to be escaped inside an URL. Most browsers do this, but not all.
Axel Beckert [Tue, 22 Jul 2008 00:15:42 +0000 (00:15 +0000)]
Revert Gavin Garr's (gonzai's) commits to the test suite on 21st of July
2008 since they seem to be at least incomplete and caused the test suite
to break badly:
01_templates.......error finding or loading blosxom plugin 'storydate': Can't locate storydate in @INC (@INC contains: /home/abe/blosxom-devel/blosxom2/t/templates/config/../../../general /home/abe/blosxom-devel/blosxom2/t/templates/config/../../../gavinc /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/abe/blosxom-devel/blosxom2/t/templates/../../blosxom.cgi line 318.
error finding or loading blosxom plugin 'rss20': Can't locate rss20 in @INC (@INC contains: /home/abe/blosxom-devel/blosxom2/t/templates/config/../../../general /home/abe/blosxom-devel/blosxom2/t/templates/config/../../../gavinc /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/abe/blosxom-devel/blosxom2/t/templates/../../blosxom.cgi line 318.
01_templates.......ok 1/0error finding or loading blosxom plugin 'storydate': Can't locate storydate in @INC (@INC contains: /home/abe/blosxom-devel/blosxom2/t/templates/config/../../../general /home/abe/blosxom-devel/blosxom2/t/templates/config/../../../gavinc /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/abe/blosxom-devel/blosxom2/t/templates/../../blosxom.cgi line 318.
error finding or loading blosxom plugin 'rss20': Can't locate rss20 in @INC (@INC contains: /home/abe/blosxom-devel/blosxom2/t/templates/config/../../../general /home/abe/blosxom-devel/blosxom2/t/templates/config/../../../gavinc /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/abe/blosxom-devel/blosxom2/t/templates/../../blosxom.cgi line 318.
01_templates.......NOK 2
The commits also include paths to locations outside the repository which
made them look as if they weren't intended the way they happened. The
missing plugins were probably located there.
We can figure out what exactly went wrong after the 2.1.0 release.
Axel Beckert [Fri, 18 Jul 2008 10:51:31 +0000 (10:51 +0000)]
Updated the changelog to mention (hopefully) all new features added since 2.0.2. (Just made a diff between HEAD and the contents of the 2.0.2 tar ball.)
Added a $blog_encoding variable which can be used in the various templates. Updated the default HTML and RSS templates. The default RSS template is now RSS2 compliant.
We make the content_type template pass through the &interpolate routine like other templates ; this is a building block to pass the encoding as a parameter. Done early inside the generate routine so that plugins that expect a real content_type will get something sane.
Introduces a $utc_offset variable which stores the offset between local time and universal time, in a convenient format for building rfc822 and iso8601 compliant dates.