diff --git a/blogalba b/blogalba index c4c1ec6..b5b7ab5 100755 --- a/blogalba +++ b/blogalba @@ -41,7 +41,7 @@ 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} and length $postm{tags})? 1 : 0; + $postm{hastags} = (defined $postm{tags}? 1 : 0); $postm{excerpt} = $1 if $postm{body} =~ /(
.*?<\/p>)/s;
$postm{time} = str2time($postm{date});
$postm{datetime} = timefmt($postm{date},'datetime');
diff --git a/layout/head.inc b/layout/head.inc
index 2478f77..97c66d5 100644
--- a/layout/head.inc
+++ b/layout/head.inc
@@ -51,7 +51,7 @@
This Post