mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Added new heading class
This commit is contained in:
parent
db355661a4
commit
63e8dee5a0
2 changed files with 31 additions and 30 deletions
|
@ -33,26 +33,25 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header>
|
||||
<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 %}
|
||||
|
||||
<article class="heading">
|
||||
{% if image %}
|
||||
<span class="image featured">
|
||||
{{ image.cropZoom(1038,437).loading('lazy').html(title, title)|raw }}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<div class="title">
|
||||
<h2>{{ title }}</h2>
|
||||
{% if listing_title %}
|
||||
<p>{{ listing_title|raw }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{{ page.content|raw }}
|
||||
|
||||
|
||||
{% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %}
|
||||
{% include 'partials/breadcrumbs.html.twig' %}
|
||||
{% endif %}
|
||||
</article>
|
||||
{% for child in collection %}
|
||||
{% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %}
|
||||
{% endfor %}
|
||||
|
|
|
@ -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 %}
|
||||
<div class="heading">
|
||||
{% include 'partials/breadcrumbs.html.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% include 'partials/blog_item.html.twig' with {'truncate':false} %}
|
||||
|
||||
{% if show_sidebar == false %}
|
||||
<section id="footer" class="align-center">
|
||||
{% include 'partials/footer.html.twig' %}
|
||||
</section>
|
||||
{% endif %}
|
||||
{% include 'partials/blog_item.html.twig' with {'truncate':false} %}
|
||||
|
||||
{% if show_sidebar == false %}
|
||||
<section id="footer" class="align-center">
|
||||
{% include 'partials/footer.html.twig' %}
|
||||
</section>
|
||||
{% 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 %}
|
||||
|
|
Loading…
Add table
Reference in a new issue