Relocated sidebar templates

This commit is contained in:
pmoreno.rodriguez 2023-08-13 12:42:14 +02:00
parent 9c1dbb713d
commit bb51b58b2a
4 changed files with 23 additions and 9 deletions

View file

@ -1,6 +0,0 @@
{% if theme_var('enable_social') %}
<ul class="icons">
{% include 'partials/social.html.twig' %}
</ul>
{% endif %}
<p class="copyright">&copy; {{ "now"|date("Y") }} {{ site.author.name }}. {{config.theme.footer.copyright_text|raw}}.</p>

View file

@ -0,0 +1,9 @@
<!-- Social links and Copyright -->
<section id="footer">
{% if theme_var('enable_social') %}
<ul class="icons">
{% include 'partials/social.html.twig' %}
</ul>
{% endif %}
<p class="copyright">&copy; {{ "now"|date("Y") }} {{ site.author.name }}. {{config.theme.footer.copyright_text|raw}}.</p>
</section>

View file

@ -0,0 +1,8 @@
<!-- Intro -->
<section id="intro">
{% include 'partials/logo.html.twig' %}
<header>
<h2>{{ site.title|e('html') }}</h2>
<p>{{theme_config.slogan|raw}}</p>
</header>
</section>

View file

@ -1,8 +1,10 @@
{# Configuring miniposts with variables defined in the theme #}
{% set miniposts_category = theme_var('miniposts_category') %}
{% set miniposts_number = config.theme.miniposts_number %}
{% set lang = grav.language.getActive ?: grav.config.site.default_lang %}
{% set miniposts_enabled = theme_var('miniposts')|defined(false) %}
{% set miniposts_category = theme_var('miniposts_category')|default('minipost') %}
{% set miniposts_number = theme_var('miniposts_number')|defined(3) %}
{% if miniposts_enabled is same as true %}
<!-- Mini Posts -->
<section>
<header class="">
<h3>{{ 'FUTURE.FEATURED'|t }}</h3>
@ -52,3 +54,4 @@
</div>
</section>
<!-- End of featured Section -->
{% endif %}