still an issue with blank descriptions #53
This commit is contained in:
parent
ad7c252a59
commit
bddb855609
@ -2,7 +2,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
{% if page.excerpt != blank %}
|
{% if page.excerpt != blank %}
|
||||||
<meta name="description" content="{{ page.excerpt | strip_html }}" />
|
<meta name="description" content="{{ page.excerpt | strip_html }}" />
|
||||||
{% elsif page.collection == 'coops' and page.ontent != blank %}
|
{% elsif page.collection == 'coops' and page.content != blank %}
|
||||||
<meta name="description" content="{{ page.content | strip_html | strip_newlines | condense_spaces | truncate:150 }}" />
|
<meta name="description" content="{{ page.content | strip_html | strip_newlines | condense_spaces | truncate:150 }}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta name="description" content="Building a tech industry that's better for its workers and customers through co-operation, democracy and worker ownership." />
|
<meta name="description" content="Building a tech industry that's better for its workers and customers through co-operation, democracy and worker ownership." />
|
||||||
@ -11,8 +11,10 @@
|
|||||||
<title>{{ page.title }} « Cooperative Technologists</title>
|
<title>{{ page.title }} « Cooperative Technologists</title>
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:title" content="{{ page.title }}" />
|
<meta property="og:title" content="{{ page.title }}" />
|
||||||
{% if page.excerpt %}
|
{% if page.excerpt != blank %}
|
||||||
<meta property="og:description" content="{{ page.excerpt | strip_html }}" />
|
<meta property="og:description" content="{{ page.excerpt | strip_html }}" />
|
||||||
|
{% elsif page.collection == 'coops' and page.content != blank %}
|
||||||
|
<meta property="og:description" content="{{ page.content | strip_html | strip_newlines | condense_spaces | truncate:150 }}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<meta property="og:description" content="Building a tech industry that's better for its workers and customers through co-operation, democracy and worker ownership." />
|
<meta property="og:description" content="Building a tech industry that's better for its workers and customers through co-operation, democracy and worker ownership." />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user