Added new heading class

This commit is contained in:
Pedro Moreno 2023-02-15 11:02:28 +01:00
parent db355661a4
commit 63e8dee5a0
2 changed files with 31 additions and 30 deletions

View file

@ -33,26 +33,25 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<header> <article class="heading">
<div class="title">
<h2>{{ title }}</h2>
{% if listing_title %}
<p>{{ listing_title|raw }}</p>
{% endif %}
</div>
</header>
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
{% if image %} {% if image %}
<span class="image featured"> <span class="image featured">
{{ image.cropZoom(1038,437).loading('lazy').html(title, title)|raw }} {{ image.cropZoom(1038,437).loading('lazy').html(title, title)|raw }}
</span> </span>
{% endif %} {% endif %}
<div class="title">
<h2>{{ title }}</h2>
{% if listing_title %}
<p>{{ listing_title|raw }}</p>
{% endif %}
</div>
{{ page.content|raw }} {{ page.content|raw }}
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
</article>
{% for child in collection %} {% for child in collection %}
{% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %} {% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %}
{% endfor %} {% endfor %}

View file

@ -6,33 +6,35 @@
{% set show_sidebar = header_var('show_sidebar')|defined(false) %} {% set show_sidebar = header_var('show_sidebar')|defined(false) %}
{% if base_url == '/' %} {% if base_url == '/' %}
{% set base_url = '' %} {% set base_url = '' %}
{% endif %} {% endif %}
{% if base_url == base_url_relative %} {% if base_url == base_url_relative %}
{% set feed_url = base_url~'/'~page.parent.slug %} {% set feed_url = base_url~'/'~page.parent.slug %}
{% endif %} {% endif %}
{% block menu %} {% block menu %}
{% include 'partials/sidebar_right.html.twig' %} {% include 'partials/sidebar_right.html.twig' %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
{% include 'partials/breadcrumbs.html.twig' %} <div class="heading">
{% endif %} {% include 'partials/breadcrumbs.html.twig' %}
</div>
{% endif %}
{% include 'partials/blog_item.html.twig' with {'truncate':false} %} {% include 'partials/blog_item.html.twig' with {'truncate':false} %}
{% if show_sidebar == false %} {% if show_sidebar == false %}
<section id="footer" class="align-center"> <section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %} {% include 'partials/footer.html.twig' %}
</section> </section>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block sidebar %} {% block sidebar %}
{% if show_sidebar == true %} {% if show_sidebar == true %}
{% include 'partials/sidebar_left.html.twig' %} {% include 'partials/sidebar_left.html.twig' %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}