[gimp-web/testing] Stripping tags from description microdata



commit d9ad7c5d9ca95315a8b4f5f3a8aa0c6a5ce04afa
Author: Pat David <patdavid gmail com>
Date:   Thu Jan 14 14:52:18 2016 -0600

    Stripping tags from description microdata

 themes/newgimp/templates/article.html |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/themes/newgimp/templates/article.html b/themes/newgimp/templates/article.html
index 3fe1f3e..168cbb4 100644
--- a/themes/newgimp/templates/article.html
+++ b/themes/newgimp/templates/article.html
@@ -41,6 +41,9 @@
     {% if article.summary %}
     <meta itemprop='description' content="{{ article.summary|striptags }}" />
     <meta property='og:description' content="{{ article.summary|striptags }}" />
+    {% else %}
+    <meta itemprop='description' content="{{ article.content|striptags|truncate() }}" />
+    <meta property='og:description' content="{{ article.content|striptags|truncate() }}" />
     {% endif %}
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]