diff --git a/templates/partials/footer.html.twig b/templates/partials/footer.html.twig deleted file mode 100644 index 18bc0b0..0000000 --- a/templates/partials/footer.html.twig +++ /dev/null @@ -1,6 +0,0 @@ -{% if theme_var('enable_social') %} - -{% endif %} - diff --git a/templates/partials/sidebar-bits/footer.html.twig b/templates/partials/sidebar-bits/footer.html.twig new file mode 100755 index 0000000..612405b --- /dev/null +++ b/templates/partials/sidebar-bits/footer.html.twig @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/templates/partials/sidebar-bits/intro.html.twig b/templates/partials/sidebar-bits/intro.html.twig new file mode 100755 index 0000000..694eab1 --- /dev/null +++ b/templates/partials/sidebar-bits/intro.html.twig @@ -0,0 +1,8 @@ + +
+{% include 'partials/logo.html.twig' %} +
+

{{ site.title|e('html') }}

+

{{theme_config.slogan|raw}}

+
+
\ No newline at end of file diff --git a/templates/partials/miniposts.html.twig b/templates/partials/sidebar-bits/miniposts.html.twig old mode 100644 new mode 100755 similarity index 87% rename from templates/partials/miniposts.html.twig rename to templates/partials/sidebar-bits/miniposts.html.twig index 5586dcf..7c88ad8 --- a/templates/partials/miniposts.html.twig +++ b/templates/partials/sidebar-bits/miniposts.html.twig @@ -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 %} +

{{ 'FUTURE.FEATURED'|t }}

@@ -52,3 +54,4 @@
+{% endif %}