Place social web share links in a details element to hide the ugly

This commit is contained in:
benjamin melançon 2026-03-12 12:17:53 -04:00
parent bd92fbfc3c
commit 18e4c80517
2 changed files with 21 additions and 19 deletions

View file

@ -19,22 +19,23 @@
* @see template_preprocess_item_list() * @see template_preprocess_item_list()
*/ */
#} #}
{% if context.list_style %} <div class="flow_middle">
{%- set attributes = attributes.addClass('item-list__' ~ context.list_style) %} {% if context.list_style %}
{% endif %} {%- set attributes = attributes.addClass('item-list__' ~ context.list_style) %}
{% if items or empty %} {% endif %}
{%- if title is not empty -%} {% if items or empty %}
<h3>{{'Shared to'|t}}</h3> <details>
{%- endif -%} <summary>{{'Shared to'|t}}</summary>
{%- if items -%}
{%- if items -%} <{{list_type}}{{attributes}}>
<{{list_type}}{{attributes}}> {%- for item in items -%}
{%- for item in items -%} <li{{item.attributes}}>{{ item.value }}</li>
<li{{item.attributes}}>{{ item.value }}</li> {%- endfor -%}
{%- endfor -%} </{{list_type}}>
</{{list_type}}> {%- else -%}
{%- else -%} {{- empty -}}
{{- empty -}} {%- endif -%}
{%- endif -%} </details>
{%- endif %} {%- endif %}
</div>

View file

@ -170,8 +170,9 @@
{% if content.field_topics is not empty %} {% if content.field_topics is not empty %}
{{ content.field_topics }} {{ content.field_topics }}
{% endif %} {% endif %}
{{content.indieweb_syndication}}
</div> </div>
{{content.indieweb_syndication}}
</div> </div>
</section> </section>
{% endif %} {% endif %}