mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
✨ feat: allow showcasing featured projects on homepage (#297)
This commit is contained in:
parent
7ef74a8f53
commit
e7172a0432
28 changed files with 174 additions and 26 deletions
|
@ -1,6 +1,11 @@
|
|||
{%- set rel_attributes = macros_rel_attributes::rel_attributes() | trim -%}
|
||||
{%- set max_projects = max_projects | default(value=999999) -%}
|
||||
<div class="cards">
|
||||
{%- for page in show_pages %}
|
||||
{# Used only in main page #}
|
||||
{% if loop.index > max_projects %}
|
||||
{% break %}
|
||||
{% endif %}
|
||||
{# Determine which URL to use, default is page.permalink #}
|
||||
{%- if page.extra.link_to and config.markdown.external_links_target_blank -%}
|
||||
{%- set blank_target = "target=_blank" -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue