X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FApp%2FSCS%2FPlugin%2FCore%2FPagePlugin%2FPageData.pm;h=eaa45d2f8a73509cf17423ee4552b3de3922f819;hb=d347b8dd827ef02957b9e7002620de96b39e9a5b;hp=a35d2f44d5162d0f05ca612d7c216119f1d7f6ff;hpb=0023adab790eca5ebd095f3309eb3678c297b106;p=scpubgit%2FApp-SCS.git diff --git a/lib/App/SCS/Plugin/Core/PagePlugin/PageData.pm b/lib/App/SCS/Plugin/Core/PagePlugin/PageData.pm index a35d2f4..eaa45d2 100644 --- a/lib/App/SCS/Plugin/Core/PagePlugin/PageData.pm +++ b/lib/App/SCS/Plugin/Core/PagePlugin/PageData.pm @@ -18,7 +18,11 @@ sub filter_content_zoom { ? $_[0]->replace_content($page->subtitle) : $_[0]->replace('') }} - ->select('.page.published_at')->replace_content($page->published_at) + ->select('.page.published_at')->${\sub { + $page->published_at + ? $_[0]->replace_content($page->published_at) + : $_[0]->replace('') + }} ->select('meta[name=description]') ->set_attribute(content => $page->description) ->select('meta[name=keywords]')