Skip to content

Commit

Permalink
Text on the left, chevron on the right
Browse files Browse the repository at this point in the history
  • Loading branch information
mporcheron authored Sep 16, 2024
1 parent 312b88f commit bde5e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1 {% if page.url == "/" or page.url == "/contact/" -%}class="text-md-start tex
{%- unless sectioned_content contains '<h2 id="' %}
{%- break -%}
{%- endunless -%}
{%- assign h2_attrs = '<h2 data-bs-toggle="collapse" href="#section' | append: i | append: '" class="d-flex align-items-center m-0 p-md-5 p-4 " role="button" aria-expanded="false" aria-controls="section' | append: i | append: '" id="' -%}
{%- assign h2_attrs = '<h2 data-bs-toggle="collapse" href="#section' | append: i | append: '" class="d-flex justify-content-between align-items-center m-0 p-md-5 p-4 " role="button" aria-expanded="false" aria-controls="section' | append: i | append: '" id="' -%}
{%- assign collapse_div = '<span class="chevron float-end ps-sm-3 ps-1"><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 320 512"><path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" /></svg></span></h2 ><div class="collapse" id="section' | append: i | append: '"><div class="pb-md-5 pb-4 px-md-5 px-4">' -%}
{%- assign sectioned_content = sectioned_content | replace_first: '<h2 id="', h2_attrs -%}
{%- assign sectioned_content = sectioned_content | replace_first: '</h2>', collapse_div -%}
Expand Down

0 comments on commit bde5e1e

Please sign in to comment.