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,14 +19,13 @@
* @see template_preprocess_item_list() * @see template_preprocess_item_list()
*/ */
#} #}
<div class="flow_middle">
{% if context.list_style %} {% if context.list_style %}
{%- set attributes = attributes.addClass('item-list__' ~ context.list_style) %} {%- set attributes = attributes.addClass('item-list__' ~ context.list_style) %}
{% endif %} {% endif %}
{% if items or empty %} {% if items or empty %}
{%- if title is not empty -%} <details>
<h3>{{'Shared to'|t}}</h3> <summary>{{'Shared to'|t}}</summary>
{%- endif -%}
{%- if items -%} {%- if items -%}
<{{list_type}}{{attributes}}> <{{list_type}}{{attributes}}>
{%- for item in items -%} {%- for item in items -%}
@ -36,5 +35,7 @@
{%- else -%} {%- else -%}
{{- empty -}} {{- empty -}}
{%- endif -%} {%- endif -%}
</details>
{%- endif %} {%- endif %}
</div>

View file

@ -170,9 +170,10 @@
{% if content.field_topics is not empty %} {% if content.field_topics is not empty %}
{{ content.field_topics }} {{ content.field_topics }}
{% endif %} {% endif %}
</div>
{{content.indieweb_syndication}} {{content.indieweb_syndication}}
</div> </div>
</div>
</section> </section>
{% endif %} {% endif %}
</article>{# end h-entry article #} </article>{# end h-entry article #}