From b5445cf28d6f784794136b127a7c59e40deba96e Mon Sep 17 00:00:00 2001 From: Matthew Connelly Date: Sun, 8 Mar 2015 23:05:18 +0000 Subject: [PATCH] fuck html templating --- blogalba | 2 +- layout/head.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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

  • Published:
  • - +
  • Tags: