From 61ad9315082ffd5bb4d451686484cb7c36ed6d78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=9A=D0=B0=D1=81=D0=B8?= =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= Date: Fri, 2 Aug 2019 17:39:12 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B5=D0=B4=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D1=81=D0=BC=D0=BE=D1=82=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flatfilecms/templates/base.jinja2 | 11 +++++------ flatfilecms/templates/layout.jinja2 | 3 +++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/flatfilecms/templates/base.jinja2 b/flatfilecms/templates/base.jinja2 index b7a07f2..e4ab524 100644 --- a/flatfilecms/templates/base.jinja2 +++ b/flatfilecms/templates/base.jinja2 @@ -1,6 +1,6 @@ {%- import 'macros.jinja2' as macros -%} - + {%- block head %} {{title}} @@ -10,8 +10,7 @@ - {%- if amphtml is defined %} - + {%- if amphtml is defined %} {%- endif %} {%- if feed is defined %} @@ -33,9 +32,9 @@ {%- if author and 'twitter' in author %} {%- endif %} - {%- if image %} - - + {%- if preview or image %} + + {%- else %} diff --git a/flatfilecms/templates/layout.jinja2 b/flatfilecms/templates/layout.jinja2 index af109cf..73b4c2f 100644 --- a/flatfilecms/templates/layout.jinja2 +++ b/flatfilecms/templates/layout.jinja2 @@ -14,6 +14,9 @@
{% block content %} + {% if summary %} + + {% endif %} {% if content %} {{content|markdown}} {% endif %}