Place social web share links in a details element to hide the ugly
This commit is contained in:
parent
bd92fbfc3c
commit
18e4c80517
2 changed files with 21 additions and 19 deletions
|
|
@ -19,22 +19,23 @@
|
|||
* @see template_preprocess_item_list()
|
||||
*/
|
||||
#}
|
||||
{% 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 -%}
|
||||
|
||||
{%- if items -%}
|
||||
<{{list_type}}{{attributes}}>
|
||||
{%- for item in items -%}
|
||||
<li{{item.attributes}}>{{ item.value }}</li>
|
||||
{%- endfor -%}
|
||||
</{{list_type}}>
|
||||
{%- else -%}
|
||||
{{- empty -}}
|
||||
{%- endif -%}
|
||||
{%- endif %}
|
||||
<div class="flow_middle">
|
||||
{% if context.list_style %}
|
||||
{%- set attributes = attributes.addClass('item-list__' ~ context.list_style) %}
|
||||
{% endif %}
|
||||
{% if items or empty %}
|
||||
<details>
|
||||
<summary>{{'Shared to'|t}}</summary>
|
||||
{%- if items -%}
|
||||
<{{list_type}}{{attributes}}>
|
||||
{%- for item in items -%}
|
||||
<li{{item.attributes}}>{{ item.value }}</li>
|
||||
{%- endfor -%}
|
||||
</{{list_type}}>
|
||||
{%- else -%}
|
||||
{{- empty -}}
|
||||
{%- endif -%}
|
||||
</details>
|
||||
{%- endif %}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -170,8 +170,9 @@
|
|||
{% if content.field_topics is not empty %}
|
||||
{{ content.field_topics }}
|
||||
{% endif %}
|
||||
|
||||
{{content.indieweb_syndication}}
|
||||
</div>
|
||||
{{content.indieweb_syndication}}
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue