From f951d4ba7d0ec55896c11cd085408366ec25773a Mon Sep 17 00:00:00 2001 From: Vinicius Senna Date: Sun, 17 Jul 2016 13:12:56 -0300 Subject: [PATCH] Insert a

tag to ease customizing article summary paddings. --- static/css/clean-blog.css | 4 ++++ templates/index.html | 12 ++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/static/css/clean-blog.css b/static/css/clean-blog.css index f54f4b9..f5bed26 100755 --- a/static/css/clean-blog.css +++ b/static/css/clean-blog.css @@ -404,3 +404,7 @@ img::-moz-selection { body { webkit-tap-highlight-color: #0085a1; } +.article-summary { + padding-top:10px; + padding-bottom: 10px; +} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 7627c34..6eeba7a 100755 --- a/templates/index.html +++ b/templates/index.html @@ -49,10 +49,14 @@ {% if SHOW_FULL_ARTICLE %} {{ article.content }} - {% elif article.has_summary %} - {{ article.summary }} - {% elif article.summary %} - {{ article.summary|striptags|truncate(140) }} + {% else %} +

+ {% if article.has_summary %} + {{ article.summary }} + {% elif article.summary %} + {{ article.summary|striptags|truncate(140) }} + {% endif %} +

{% endif %}

Posted by {% for author in article.authors %}