From 9800a440363690005aa4bf7df63165d742464431 Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" Date: Sun, 13 Aug 2023 12:42:50 +0200 Subject: [PATCH] New recent posts template --- .../sidebar-bits/recentposts.html.twig | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 templates/partials/sidebar-bits/recentposts.html.twig diff --git a/templates/partials/sidebar-bits/recentposts.html.twig b/templates/partials/sidebar-bits/recentposts.html.twig new file mode 100755 index 0000000..4d88df4 --- /dev/null +++ b/templates/partials/sidebar-bits/recentposts.html.twig @@ -0,0 +1,38 @@ +{# Set the number or recent posts will be displayed in sidebar #} +{% set recent_enabled = theme_var('recent_posts_enabled')|defined(false) %} +{% set recent_number = theme_var('recent_posts_number')|defined(5) %} + +{% if recent_enabled is same as true %} +
+
+

{{ 'FUTURE.SIDEBAR.RECENT_POSTS.HEADLINE'|t }}

+
+ +
+{% endif %}