{% comment %} Adds a non-breaking space before the final word in titles to prevent widows. {% endcomment %}
{% assign words = include.title | split: “ ” %} {% if words.size > 2 %}
{% for word in words %}{% if forloop.last %} {% else %} {% endif %}{{ word }}{% endfor %}
{% else %}
{% for word in words %} {{ word }} {% endfor %}
{% endif %}