5
0
mirror of https://git.coop/cotech/website.git synced 2024-11-21 22:33:05 +00:00

optional page.excerpt for meta descriptions

This commit is contained in:
Chris Croome 2019-04-25 14:08:52 +01:00
parent 7a532078f1
commit 3f0f4dca05

View File

@ -1,12 +1,19 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if page.excerpt %}
<meta name="description" content="{{ page.excerpt | strip_html }}" />
{% 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 % }
<meta charset="UTF-8">
<title>{{ page.title }} &laquo; Cooperative Technologists</title>
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ page.title }}" />
{% if page.excerpt %}<!-- page.excerpt : {{ page.excerpt | strip_html }} -->{% endif %}
{% if page.excerpt %}
<meta property="og:description" content="{{ page.excerpt | strip_html }}" />
{% 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." />
{% endif % }
<meta property="og:site_name" content="Cooperative Technologists" />
<meta property="og:image" content="/app/themes/coop-tech-oowp-theme/public/img/Cotech_512x512.png" />
<meta property="og:locale" content="en_GB" />