Relocated sidebar templates

This commit is contained in:
pmoreno.rodriguez 2023-08-13 12:50:32 +02:00
parent 2363970749
commit 611caa23c0

57
templates/partials/sidebar_left.html.twig Normal file → Executable file
View file

@ -1,32 +1,29 @@
<section id="sidebar"> <section id="sidebar">
<!-- Intro -->
<section id="intro"> {% block intro %}
{% include 'partials/logo.html.twig' %} {% include 'partials/sidebar-bits/intro.html.twig' %}
<header> {% endblock %}
<h2>{{ site.title|e('html') }}</h2>
<p>{{theme_config.slogan|raw}}</p> {% block miniposts %}
</header> {% include 'partials/sidebar-bits/miniposts.html.twig' %}
</section> {% endblock %}
<!-- Mini Posts -->
{% if theme_config.miniposts == true %} {% block latest %}
{% block miniposts %} {% include 'partials/sidebar-bits/recentposts.html.twig' %}
{% include 'partials/miniposts.html.twig' %} {% endblock %}
{% endblock %}
{% endif %} {% block footer %}
<!-- About --> <!-- About -->
{% if theme_config.footer.title or theme_config.footer.description %} {% if theme_config.footer.title or theme_config.footer.description %}
<section class="blurb"> <section class="blurb">
<h2>{{theme_config.footer.title}}</h2> <h2>{{theme_config.footer.title}}</h2>
<p>{{theme_config.footer.description}}</p> <p>{{theme_config.footer.description}}</p>
<ul class="actions"> <ul class="actions">
<li><a href="{{theme_config.footer.button_url}}" class="button" aria-label="{{theme_config.footer.title}}">{{theme_config.footer.button_text}}</a></li> <li><a href="{{theme_config.footer.button_url}}" class="button" aria-label="{{theme_config.footer.title}}">{{theme_config.footer.button_text}}</a></li>
</ul> </ul>
</section> </section>
{% endif %} {% endif %}
<!-- Footer --> {% include 'partials/sidebar-bits/footer.html.twig' %}
<section id="footer"> {% endblock %}
{% block footer %}
{% include 'partials/footer.html.twig' %}
{% endblock %}
</section>
</section> </section>