From 8e061a596b60256d88c6d3180c6fb65cdded1776 Mon Sep 17 00:00:00 2001 From: Matthew Connelly Date: Sun, 8 Mar 2015 23:29:43 +0000 Subject: [PATCH] please --- blogalba | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blogalba b/blogalba index b53be87..76bd561 100755 --- a/blogalba +++ b/blogalba @@ -41,11 +41,11 @@ sub readpost { $postm{body} = markdown($postb); undef $postb; if (defined $postm{date}) { $postm{slug} = slugify($postm{title}) unless $postm{slug}; #we allow custom slugs to be defined - $postm{hastags} = (defined $postm{tags}? 1 : 0); + $postm{hastags} = 1 unless not defined $postm{tags}; $postm{excerpt} = $1 if $postm{body} =~ /(

.*?<\/p>)/s; $postm{time} = str2time($postm{date}); - $postm{datetime} = timefmt($postm{date},'datetime'); $postm{fancy} = timefmt($postm{time},'fancydate'); + $postm{datetime} = timefmt($postm{date},'datetime'); $postm{permaurl} = $blog->{url}.$blog->{posturlprepend}.timefmt($postm{time},'permalink').$postm{slug}; } push @posts,{%postm} if $psh==1; push @pages,{%postm} if $psh==2;return %postm;