Skip to content

Commit

Permalink
Fix OpenAPI site render
Browse files Browse the repository at this point in the history
Signed-off-by: John Mertic <[email protected]>
  • Loading branch information
jmertic committed Dec 6, 2024
1 parent 461f701 commit 69497e5
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions _includes/openapiwebsite.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ <h2 style="text-align: center">
{% for committee_member in include.committee_members %}
{%- capture tablet_column_break -%}{{ forloop.index0 | modulo:2 }}{%- endcapture -%}
{%- capture desktop_column_break -%}{{ forloop.index0 | modulo:3 }}{%- endcapture -%}
{%- unless forloop.first and desktop_column_break != "0" -%}
<!--
DEBUG:
index: {{ forloop.index0 }}
tablet_column_break: {{ tablet_column_break }}
desktop_column_break: {{ desktop_column_break }}
-->
{%- unless forloop.first or desktop_column_break != "0" -%}
</div>
{%- endunless -%}
{%- if forloop.first or tablet_column_break == "0" -%}
Expand Down Expand Up @@ -34,13 +42,12 @@ <h2 style="text-align: center">
</div>
</div>
</div>
{%- if forloop.last -%}{%- if desktop_column_break == "0" and !forloop.first -%}
</div>
{%- endif -%}{%- endif -%}
{%- if forloop.last -%}
<div style="clear:both;"></div>
{%- endif -%}
{%- if forloop.last or desktop_column_break == "0" -%}
</div>
{%- endif -%}
{%- endfor -%}
</div>
</div>
Expand Down

0 comments on commit 69497e5

Please sign in to comment.