mirror of
https://git.coop/cotech/website.git
synced 2024-11-21 14:23:06 +00:00
use page.content if page.excerpt doesn't exist #53
This commit is contained in:
parent
a3cc37053b
commit
82c8a58624
@ -2,6 +2,8 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
{% if page.excerpt %}
|
||||
<meta name="description" content="{{ page.excerpt | strip_html }}" />
|
||||
{% elsif page.content %}
|
||||
<meta name="description" content="{{ page.content | strip_html | strip_newlines | condense_spaces | truncate:150 }}" />
|
||||
{% else %}
|
||||
<meta name="description" content="Building a tech industry that's better for its workers and customers through co-operation, democracy and worker ownership." />
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user