{%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%}
{%- endif -%} {% assign totalHeaderCount = 0 %} {% for data in pageData.TEXTUAL_CONTENT %} {% assign words = data.header | split: " " %} {% assign word_count = words | size %} {% assign totalHeaderCount = totalHeaderCount | plus: word_count %} {% endfor %} {% for data in pageData.TEXTUAL_CONTENT %}
{{data.header}}
{%- if totalHeaderCount > site.count_of_words_in_headings -%}

{{data.header | replace: "$variable", page.value}}

{%- else -%}
{{data.header | replace: "$variable", page.value}}
{%- endif -%}

{{data.content | replace: "$variable", page.value}}

{% endfor %} {%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%}
{%- endif -%}