Squashed 'themes/tabi-lean/' content from commit efb4246
git-subtree-dir: themes/tabi-lean git-subtree-split: efb42461fde7ee5b0c140d27f2789fdf9c98b100
This commit is contained in:
commit
8be91ee3d9
336 changed files with 25227 additions and 0 deletions
16
templates/partials/main_page_projects_list.html
Normal file
16
templates/partials/main_page_projects_list.html
Normal file
|
@ -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) }} <span class="arrow">⟶</span></a>
|
||||
</div>
|
||||
{%- endif -%}
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue