Improved archives section in sidebar

This commit is contained in:
pmoreno 2023-04-17 20:35:54 +02:00
parent 6e144dabe7
commit 619bcb6ca3

4
templates/partials/sidebar_right.html.twig Normal file → Executable file
View file

@ -9,7 +9,7 @@
<section id="sidebarmenu">
{% include 'partials/sidebar_navigation.html.twig' %}
</section>
{% if config.plugins.archives.enabled %}
{% if config.plugins.archives.enabled and archives_data is not empty %}
<!-- Actions -->
<section>
<header>
@ -18,7 +18,7 @@
{% include 'partials/archives.html.twig' %}
</section>
{% endif %}
{% if config.plugins.relatedpages.enabled %}
{% if config.plugins.relatedpages.enabled and related_pages|length > 0 %}
<section>
<header>
<h3>{{ 'FUTURE.SIDEBAR.RELATED_POSTS.HEADLINE'|t }}</h3>