{% macro card(section) -%} {% set section_name = macro::get_section_name(section=section) -%}

{{ macro::get_section_title(section=section) }}

{% set card_type = section.extra.card_type | default(value="simple") %} {% if card_type == "simple" -%} {%- include "cards/simple.html" -%} {% elif card_type == "columns" -%} {%- include "cards/columns.html" -%} {% elif card_type == "list" -%} {%- include "cards/list.html" -%} {% else -%}

Unknown Card Type 🤷

{% endif -%}
{% endmacro %} {% macro format_name(name) -%} {{ config.extra.name.first | title }} {{ config.extra.name.last | upper }} {%- endmacro %} {% macro get_section_name(section) -%} {{ section.path | replace(from="/", to="") }} {%- endmacro %} {% macro get_section_title(section) -%} {{ section.title | default(value="Untitled Section") }} {%- endmacro %}