From 63e8dee5a02967597909c5cd9bcc2e08e6b1001a Mon Sep 17 00:00:00 2001 From: Pedro Moreno Date: Wed, 15 Feb 2023 11:02:28 +0100 Subject: [PATCH] Added new heading class --- templates/blog.html.twig | 27 +++++++++++++-------------- templates/item.html.twig | 34 ++++++++++++++++++---------------- 2 files changed, 31 insertions(+), 30 deletions(-) diff --git a/templates/blog.html.twig b/templates/blog.html.twig index eae3e74..10e0010 100755 --- a/templates/blog.html.twig +++ b/templates/blog.html.twig @@ -33,26 +33,25 @@ {% endblock %} {% block content %} -
-
-

{{ title }}

- {% if listing_title %} -

{{ listing_title|raw }}

- {% endif %} -
-
- {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} - {% include 'partials/breadcrumbs.html.twig' %} - {% endif %} - +
{% if image %} {{ image.cropZoom(1038,437).loading('lazy').html(title, title)|raw }} {% endif %} - +
+

{{ title }}

+ {% if listing_title %} +

{{ listing_title|raw }}

+ {% endif %} +
+ {{ page.content|raw }} - + + {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} + {% include 'partials/breadcrumbs.html.twig' %} + {% endif %} +
{% for child in collection %} {% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %} {% endfor %} diff --git a/templates/item.html.twig b/templates/item.html.twig index 8dad1c8..266f517 100755 --- a/templates/item.html.twig +++ b/templates/item.html.twig @@ -6,33 +6,35 @@ {% set show_sidebar = header_var('show_sidebar')|defined(false) %} {% if base_url == '/' %} - {% set base_url = '' %} + {% set base_url = '' %} {% endif %} {% if base_url == base_url_relative %} - {% set feed_url = base_url~'/'~page.parent.slug %} + {% set feed_url = base_url~'/'~page.parent.slug %} {% endif %} {% block menu %} - {% include 'partials/sidebar_right.html.twig' %} + {% include 'partials/sidebar_right.html.twig' %} {% endblock %} {% block content %} - {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} - {% include 'partials/breadcrumbs.html.twig' %} - {% endif %} + {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} +
+ {% include 'partials/breadcrumbs.html.twig' %} +
+ {% endif %} - {% include 'partials/blog_item.html.twig' with {'truncate':false} %} - - {% if show_sidebar == false %} - - {% endif %} + {% include 'partials/blog_item.html.twig' with {'truncate':false} %} + + {% if show_sidebar == false %} + + {% endif %} {% endblock %} {% block sidebar %} - {% if show_sidebar == true %} - {% include 'partials/sidebar_left.html.twig' %} - {% endif %} + {% if show_sidebar == true %} + {% include 'partials/sidebar_left.html.twig' %} + {% endif %} {% endblock %}