From d9747d3bc5f3401c146af6d9e70463865602b3e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 10 Dec 2017 15:40:20 +0100 Subject: [PATCH] theme: more compact page markup. --- pelican-theme/templates/page.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pelican-theme/templates/page.html b/pelican-theme/templates/page.html index 415e7d53..c50826da 100644 --- a/pelican-theme/templates/page.html +++ b/pelican-theme/templates/page.html @@ -22,8 +22,10 @@ + {% if page.summary %} + {% endif %} {% if page.cover %} @@ -68,8 +70,8 @@
{% if not page.landing %} + {% if page.breadcrumb %}

- {% if page.breadcrumb %} {% set breadcrumbs = page.breadcrumb.strip().split('\n') %} {% for i in breadcrumbs %} @@ -77,13 +79,17 @@ {{ title }} » {% endfor %} - {% endif %} {{ page.title }}

+ {% else %} +

{{ page.title }}

+ {% endif %} {% endif %} + {% if page.content %} {{ page.content|trim }} + {% endif %}
-- 2.30.2