--- layout: default --- {% assign documento = site.posts | where: 'layout', 'post' | first %}

{{ documento.title }}

{% include share_box.html url=page.url title=documento.title description=documento.description %}
{%- if documento.image.path -%}
{{ documento.image.description | default: documento.title }}
{%- endif -%} {{ documento.content }}

{{ site.i18n.home.form.title }}

{%- assign forms = 'adhesion,adhesion_individual' | split: ',' -%} {% for form in forms %} {% endfor %}
{%- if documento.cita -%}
{{ documento.cita | append: '' | markdownify }}
{%- if documento.cita_autore -%} {%- endif -%}
{%- endif -%}
{%- assign adhesiones = site.posts | where: 'layout', 'adhesion' -%} {%- assign adhesiones_individuales = site.posts | where: 'layout', 'adhesion_individual' -%} {%- assign total = adhesiones_individuales | size %} {%- assign total = adhesiones | size | plus: total -%} {%- assign adhesiones_individuales = adhesiones_individuales | where: 'public', true | where: 'draft', false -%}

{{ site.i18n.home.adhesiones }}

{{ total }} {{ site.i18n.home.metric }}

{%- for adhesion in adhesiones -%} {% assign cleaned_content = adhesion.content | strip_html | strip %} {% if cleaned_content == empty %}{% continue %}{% endif %}
{%- if adhesion.web -%} {{ adhesion.title }} {%- else -%} {{ adhesion.title }} {%- endif -%}
{{ adhesion.content }}
{%- endfor -%} {%- for adhesion in adhesiones_individuales -%} {% assign cleaned_content = adhesion.content | strip_html | strip %} {% if cleaned_content == empty %}{% continue %}{% endif %}
{{ adhesion.name }}
{{ adhesion.content }}
{%- endfor -%}