summaryrefslogtreecommitdiff
path: root/themes/tabi-lean/templates/partials/main_page_projects_list.html
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2025-09-13 14:55:15 -0600
committerAlejandro Soto <alejandro@34project.org>2025-09-13 14:55:15 -0600
commit87f85704af1fa866be83077b2b351c1fdad7c3ce (patch)
treeb49c8d49ef717e539bff6578992e692eea55d380 /themes/tabi-lean/templates/partials/main_page_projects_list.html
parent1a4c3216f027d6a6f36104547377b7b21faa5015 (diff)
parenta2ea06d513a5802964f8f0ef5795cec7e548ed7b (diff)
Merge commit 'a2ea06d513a5802964f8f0ef5795cec7e548ed7b' as 'themes/tabi-lean'
Diffstat (limited to 'themes/tabi-lean/templates/partials/main_page_projects_list.html')
-rw-r--r--themes/tabi-lean/templates/partials/main_page_projects_list.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/themes/tabi-lean/templates/partials/main_page_projects_list.html b/themes/tabi-lean/templates/partials/main_page_projects_list.html
new file mode 100644
index 0000000..82f0637
--- /dev/null
+++ b/themes/tabi-lean/templates/partials/main_page_projects_list.html
@@ -0,0 +1,16 @@
+{% if section.extra.projects_path %}
+ {%- set projects_section = get_section(path=section.extra.projects_path) -%}
+ {%- if projects_section -%}
+ <div id="featured-projects" class="list">
+ {{ macros_page_header::page_header(title=macros_translate::translate(key="featured_projects", default="Featured projects", language_strings=language_strings)) }}
+ </div>
+ {%- set show_pages = projects_section.pages -%}
+ {%- set max_projects = section.extra.max_projects | default(value=3) -%}
+ {%- include "partials/cards_pages.html" -%}
+ {%- endif -%}
+ {%- if show_pages | length > max_projects -%}
+ <div class="all-posts" id="all-projects">
+ <a href="{{ get_url(path=projects_section.path, lang=lang) }}/">{{ macros_translate::translate(key="all_projects", default="All projects", language_strings=language_strings) }}&nbsp;<span class="arrow">⟶</span></a>
+ </div>
+ {%- endif -%}
+{% endif %}