From 5b61c6108066f4293534209f1957ebb50f35c6e7 Mon Sep 17 00:00:00 2001 From: Sid Date: Thu, 26 May 2016 09:24:35 +0800 Subject: [PATCH] fix description meta format error --- layout/includes/head.swig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layout/includes/head.swig b/layout/includes/head.swig index 935ba68..0f3beff 100644 --- a/layout/includes/head.swig +++ b/layout/includes/head.swig @@ -28,9 +28,10 @@ {% endif %} {% set metaDescription = trim(strip_html(page.description || page.excerpt || page.content || config.description)) %} {% if metaDescription.length > 200 %} - {{ truncate( metaDescription, {length: 200}) }} + + {% else %} + {% endif %} - {{ pageTitle }} {% if config.feed || theme.feed %} {{ feed_tag(config.feed.path || theme.feed.path, {title: config.title, type: config.feed.type || theme.feed.type}) }}