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
9c1dbb713d
commit
bb51b58b2a
4 changed files with 23 additions and 9 deletions
|
@ -1,6 +0,0 @@
|
||||||
{% if theme_var('enable_social') %}
|
|
||||||
<ul class="icons">
|
|
||||||
{% include 'partials/social.html.twig' %}
|
|
||||||
</ul>
|
|
||||||
{% endif %}
|
|
||||||
<p class="copyright">© {{ "now"|date("Y") }} {{ site.author.name }}. {{config.theme.footer.copyright_text|raw}}.</p>
|
|
9
templates/partials/sidebar-bits/footer.html.twig
Executable file
9
templates/partials/sidebar-bits/footer.html.twig
Executable 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">© {{ "now"|date("Y") }} {{ site.author.name }}. {{config.theme.footer.copyright_text|raw}}.</p>
|
||||||
|
</section>
|
8
templates/partials/sidebar-bits/intro.html.twig
Executable file
8
templates/partials/sidebar-bits/intro.html.twig
Executable 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>
|
9
templates/partials/miniposts.html.twig → templates/partials/sidebar-bits/miniposts.html.twig
Normal file → Executable file
9
templates/partials/miniposts.html.twig → templates/partials/sidebar-bits/miniposts.html.twig
Normal file → Executable file
|
@ -1,8 +1,10 @@
|
||||||
{# Configuring miniposts with variables defined in the theme #}
|
{# Configuring miniposts with variables defined in the theme #}
|
||||||
{% set miniposts_category = theme_var('miniposts_category') %}
|
{% set miniposts_enabled = theme_var('miniposts')|defined(false) %}
|
||||||
{% set miniposts_number = config.theme.miniposts_number %}
|
{% set miniposts_category = theme_var('miniposts_category')|default('minipost') %}
|
||||||
{% set lang = grav.language.getActive ?: grav.config.site.default_lang %}
|
{% set miniposts_number = theme_var('miniposts_number')|defined(3) %}
|
||||||
|
|
||||||
|
{% if miniposts_enabled is same as true %}
|
||||||
|
<!-- Mini Posts -->
|
||||||
<section>
|
<section>
|
||||||
<header class="">
|
<header class="">
|
||||||
<h3>{{ 'FUTURE.FEATURED'|t }}</h3>
|
<h3>{{ 'FUTURE.FEATURED'|t }}</h3>
|
||||||
|
@ -52,3 +54,4 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<!-- End of featured Section -->
|
<!-- End of featured Section -->
|
||||||
|
{% endif %}
|
Loading…
Add table
Reference in a new issue