diff --git a/_includes/head.html b/_includes/head.html index 8237e95..2a1e710 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,8 +1,8 @@ -{% if page.excerpt | strip_html | strip_newlines != blank %} - -{% elsif page.collection == 'coops' and page.content | strip_html | strip_newlines != blank %} +{% if page.excerpt | strip_html | strip_newlines | condense_spaces != "" %} + +{% elsif page.collection == 'coops' and page.content | strip_html | strip_newlines | condense_spaces | truncate:150 != "" %} {% else %} @@ -11,9 +11,9 @@ {{ page.title }} « Cooperative Technologists -{% if page.excerpt | strip_html | strip_newlines != blank %} +{% if page.excerpt | strip_html | strip_newlines | condense_spaces != "" %} -{% elsif page.collection == 'coops' and page.content | strip_html | strip_newlines != blank %} +{% elsif page.collection == 'coops' and page.content | strip_html | strip_newlines | condense_spaces | truncate:150 != "" %} {% else %}