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

View file

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