refactor: rationalize whitespace

This commit is contained in:
Cyril MARPAUD
2023-03-14 11:29:35 +01:00
parent 63e21f0fe0
commit 295c9151f4
5 changed files with 50 additions and 53 deletions

View File

@ -36,28 +36,28 @@
<p>
{%- for role in section.extra.roles %}
<span>{{ role }}</span><br>
{% endfor %}
{%- endfor %}
</p>
</div>
{%- endif -%}
{%- endif %}
{% if config.extra.links -%}
<div id="links">
<p>
{% for link in config.extra.links -%}
{%- for link in config.extra.links %}
<a aria-label="external link" href="{{ link.url }}"><i class="{{ link.icon }} fa-2x"></i></a>
{% endfor %}
{%- endfor %}
</p>
</div>
{% endif %}
{%- endif %}
{% if sections -%}
<div id="internal_links">
<p>
{% for section in sections -%}
{% set section_name = macro::get_section_name(section=section) %}
{%- for section in sections %}
{% set section_name = macro::get_section_name(section=section) -%}
<a aria-label="go to {{ section_name }} section" href="#{{ section_name }}">{{ macro::get_section_title(section=section) }}</a>
{% endfor %}
{%- endfor %}
</p>
</div>
{%- endif %}
@ -65,8 +65,8 @@
</div>
</div>
{% for section in sections -%}
{%- for section in sections %}
{{ macro::card(section=section) }}
{% endfor -%}
{%- endfor %}
{% endblock content %}