mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Relocated sidebar templates
This commit is contained in:
parent
2363970749
commit
611caa23c0
1 changed files with 27 additions and 30 deletions
57
templates/partials/sidebar_left.html.twig
Normal file → Executable file
57
templates/partials/sidebar_left.html.twig
Normal file → Executable file
|
@ -1,32 +1,29 @@
|
|||
<section id="sidebar">
|
||||
<!-- Intro -->
|
||||
<section id="intro">
|
||||
{% include 'partials/logo.html.twig' %}
|
||||
<header>
|
||||
<h2>{{ site.title|e('html') }}</h2>
|
||||
<p>{{theme_config.slogan|raw}}</p>
|
||||
</header>
|
||||
</section>
|
||||
<!-- Mini Posts -->
|
||||
{% if theme_config.miniposts == true %}
|
||||
{% block miniposts %}
|
||||
{% include 'partials/miniposts.html.twig' %}
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
<!-- About -->
|
||||
{% if theme_config.footer.title or theme_config.footer.description %}
|
||||
<section class="blurb">
|
||||
<h2>{{theme_config.footer.title}}</h2>
|
||||
<p>{{theme_config.footer.description}}</p>
|
||||
<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>
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
||||
<!-- Footer -->
|
||||
<section id="footer">
|
||||
{% block footer %}
|
||||
{% include 'partials/footer.html.twig' %}
|
||||
{% endblock %}
|
||||
</section>
|
||||
|
||||
{% block intro %}
|
||||
{% include 'partials/sidebar-bits/intro.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block miniposts %}
|
||||
{% include 'partials/sidebar-bits/miniposts.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block latest %}
|
||||
{% include 'partials/sidebar-bits/recentposts.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
<!-- About -->
|
||||
{% if theme_config.footer.title or theme_config.footer.description %}
|
||||
<section class="blurb">
|
||||
<h2>{{theme_config.footer.title}}</h2>
|
||||
<p>{{theme_config.footer.description}}</p>
|
||||
<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>
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
||||
{% include 'partials/sidebar-bits/footer.html.twig' %}
|
||||
{% endblock %}
|
||||
|
||||
</section>
|
||||
|
|
Loading…
Add table
Reference in a new issue