From c5976e996210d9847e9f60d4ab4c1eea8c316f7f Mon Sep 17 00:00:00 2001 From: Cyril MARPAUD Date: Tue, 14 Mar 2023 11:38:52 +0100 Subject: [PATCH] refactor: indent with tabs --- templates/cards/columns.html | 22 +++++++++--------- templates/cards/list.html | 30 ++++++++++++------------- templates/macros.html | 43 ++++++++++++++++++------------------ 3 files changed, 47 insertions(+), 48 deletions(-) diff --git a/templates/cards/columns.html b/templates/cards/columns.html index 035db99..e1ddf0f 100644 --- a/templates/cards/columns.html +++ b/templates/cards/columns.html @@ -1,12 +1,12 @@ {{ section.content | safe }} -
- {%- for page in section.pages %} -
-

{{ page.title }}

- {% for icon in page.extra.icons | default(value=[]) -%} - - {%- endfor %} - {{ page.content | safe }} -
- {%- endfor %} -
+
+ {%- for page in section.pages %} +
+

{{ page.title }}

+ {% for icon in page.extra.icons | default(value=[]) -%} + + {%- endfor %} + {{ page.content | safe }} +
+ {%- endfor %} +
diff --git a/templates/cards/list.html b/templates/cards/list.html index 8d731b3..f0d38b4 100644 --- a/templates/cards/list.html +++ b/templates/cards/list.html @@ -1,16 +1,16 @@ {{ section.content | safe -}} - {% for page in section.pages %} - {% set_global link_after = not link_after | default(value=false) %} -

{{ page.title }}

-
- {%- if link_after %} - {{ page.content | safe }} - {%- endif -%} - {% if page.extra.link %} - {{ section.extra.discover | default(value="Discover") }} - {%- endif -%} - {% if not link_after %} - {{ page.content | safe -}} - {% endif %} -
- {%- endfor -%} + {% for page in section.pages %} + {% set_global link_after = not link_after | default(value=false) %} +

{{ page.title }}

+
+ {%- if link_after %} + {{ page.content | safe }} + {%- endif -%} + {% if page.extra.link %} + {{ section.extra.discover | default(value="Discover") }} + {%- endif -%} + {% if not link_after %} + {{ page.content | safe -}} + {% endif %} +
+ {%- endfor -%} diff --git a/templates/macros.html b/templates/macros.html index fa420f2..deb2e14 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -1,29 +1,28 @@ {% 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 %} -
+
+

{{ 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 %}