Skip to content

Commit

Permalink
Ikiwiki plugin: Use canmeta correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwolson committed Nov 24, 2008
1 parent e861c46 commit a6d7ed6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/ikiwiki/IkiWiki/Plugin/muse.pm
Expand Up @@ -53,7 +53,8 @@ sub scan (@) {
pos = undef;
while ( m/ \G \# ([a-zA-Z-]+) \s+ (.+?) \n+ /sgx ) {
my ($key, $val) = ($1, $2);
if ( $key =~ m/^(tags?|category)$/s && $cantag ) {
if ( $key =~ m/^(tags?|category)$/s ) {
next unless $cantag;
$fun = sub {
IkiWiki::Plugin::tag::preprocess_tag(
(map { $_ => '' } (split /\s+/, $val)),
Expand All @@ -64,6 +65,7 @@ sub scan (@) {
};
}
else {
next unless $canmeta;
if ( $key eq 'date' ) {
# Support pyblosxom-style dates (YYYY-MM-DD(-hh-mm)?)
my $re = qr/ ^ ([0-9]{4}) - ([0-1][0-9]) - ([0-3][0-9])
Expand Down

0 comments on commit a6d7ed6

Please sign in to comment.