From 48a1cd0946834fbaad31ef323570f0c88e72634a Mon Sep 17 00:00:00 2001 From: SDE Date: Mon, 11 Dec 2023 15:20:07 +0300 Subject: [PATCH] 0.4.10 projects show by if --- templates/blocks/b_projects.html | 34 +++++++++++++++++--------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/templates/blocks/b_projects.html b/templates/blocks/b_projects.html index 6919ca4..1b6dec4 100644 --- a/templates/blocks/b_projects.html +++ b/templates/blocks/b_projects.html @@ -8,21 +8,23 @@ {# {% endfor %}#} {##} {% load static %} -
-
-
-
- +{% if page.get_projects %} +
+
+
+
+ +
+
+ {% for project in page.get_projects %} + {% include 'widgets/w_project.html' %} + {% endfor %} +
+
+ +
+
-
- {% for project in page.get_projects %} - {% include 'widgets/w_project.html' %} - {% endfor %} -
-
- -
- -
+
-
\ No newline at end of file +{% endif %} \ No newline at end of file