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,14 +19,13 @@
|
||||||
* @see template_preprocess_item_list()
|
* @see template_preprocess_item_list()
|
||||||
*/
|
*/
|
||||||
#}
|
#}
|
||||||
{% if context.list_style %}
|
<div class="flow_middle">
|
||||||
|
{% 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 -%}
|
||||||
{%- endif %}
|
</details>
|
||||||
|
{%- endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 #}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue