5
0
mirror of https://git.coop/cotech/website.git synced 2024-12-23 11:05:24 +00:00
cotech-website/_includes/head.html

76 lines
3.9 KiB
HTML
Raw Normal View History

2017-07-01 12:36:32 +00:00
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2019-04-25 17:53:35 +00:00
{% if page.description %}
<meta name="description" content="{{ page.description | strip_html | strip_newlines | condense_spaces }}" />
{% elsif page.collection == 'coops' and page.content %}
<meta name="description" content="{{ page.content | strip_html | strip_newlines | condense_spaces | truncate:150 }}" />
{% else %}
2019-06-05 10:30:36 +00:00
<meta name="description" content="{{ site.description }}" />
2019-04-25 13:20:35 +00:00
{% endif %}
2017-07-01 12:36:32 +00:00
<meta charset="UTF-8">
{% if page.layout == "home" %}
<title>{{ page.title }} &laquo; {{ site.long_title }}</title>
{% else %}
2019-06-05 10:55:33 +00:00
<title>{{ page.title }} &laquo; {{ site.title }} &laquo; {{ site.long_title }}</title>
{% endif %}
<meta property="og:type" content="website" />
2019-06-05 10:47:19 +00:00
{% if page.layout == "home" %}
<meta property="og:title" content="{{ page.title }} &laquo; {{ site.long_title }}" />
{% else %}
2019-06-05 10:30:36 +00:00
<meta property="og:title" content="{{ page.title }} &laquo; {{ site.title }} &laquo; {{ site.long_title }}" />
2019-06-05 10:47:19 +00:00
{% endif %}
2019-04-25 17:53:35 +00:00
{% if page.description %}
<meta property="og:description" content="{{ page.description | strip_html | strip_newlines }}" />
{% elsif page.collection == 'coops' and page.content %}
<meta property="og:description" content="{{ page.content | strip_html | strip_newlines | condense_spaces | truncate:150 }}" />
{% else %}
2019-06-05 10:30:36 +00:00
<meta property="og:description" content="{{ site.description }}" />
2019-04-25 13:20:35 +00:00
{% endif %}
2019-06-05 10:30:36 +00:00
<meta property="og:site_name" content="{{ page.title }} &laquo; {{ site.long_title }}" />
2019-04-25 15:07:16 +00:00
{% if page.collection == 'coops' %}
<meta property="og:image" content="/images/coops/{{ page.slug }}.png" />
2019-04-25 15:12:28 +00:00
{% elsif page.collection == 'services' %}
<meta property="og:image" content="/images/services/{{ page.slug }}.png" />
2019-04-25 15:12:28 +00:00
{% elsif page.collection == 'technologies' %}
<meta property="og:image" content="/images/technologies/{{ page.slug }}.png" />
2019-04-25 15:12:28 +00:00
{% elsif page.collection == 'clients' %}
<meta property="og:image" content="/images/clients/{{ page.slug }}.png" />
2019-04-25 15:12:28 +00:00
{% else %}
2019-04-25 15:30:35 +00:00
<meta property="og:image" content="/assets/img/Cotech_512x512.png" />
2019-04-25 15:12:28 +00:00
{% endif %}
<meta property="og:locale" content="en_GB" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@CotechUK" />
2019-06-05 07:54:07 +00:00
{% if page.collection == 'coops' %}
<meta name="twitter:image" content="{{ site.url }}/images/coops/{{ page.slug }}.png" />
2019-06-05 07:54:07 +00:00
{% elsif page.collection == 'services' %}
<meta name="twitter:image" content="{{ site.url }}/images/services/{{ page.slug }}.png" />
2019-06-05 07:54:07 +00:00
{% elsif page.collection == 'technologies' %}
<meta name="twitter:image" content="{{ site.url }}/images/technologies/{{ page.slug }}.png" />
2019-06-05 07:54:07 +00:00
{% elsif page.collection == 'clients' %}
<meta name="twitter:image" content="{{ site.url }}/images/clients/{{ page.slug }}.png" />
2019-06-05 07:54:07 +00:00
{% else %}
<meta name="twitter:image" content="{{ site.url }}/assets/img/Cotech_512x512.png" />
2019-06-05 07:54:07 +00:00
{% endif %}
2019-06-05 08:00:23 +00:00
<link rel="canonical" href="{{ page.url | absolute_url }}" />
2019-04-25 14:50:34 +00:00
<link rel='stylesheet' id='app-css' href='/assets/css/app.css?ver=4.8' type='text/css' media='all' />
<script type='text/javascript' src='/assets/js/vendor.js?ver=4.8'></script>
<link rel="icon" href="/assets/img/cropped-cotech_512x512-32x32.png" sizes="32x32" />
<link rel="icon" href="/assets/img/cropped-cotech_512x512-192x192.png" sizes="192x192" />
<link rel="apple-touch-icon-precomposed" href="/assets/img/cropped-cotech_512x512-180x180.png" />
<meta name="msapplication-TileImage" content="/assets/img/cropped-cotech_512x512-270x270.png" />
2017-07-01 12:36:32 +00:00
<style type="text/css" id="wp-custom-css">
section#contact div.row div p a:active,
section#contact div.row div p a:focus,
section#contact div.row div p a:hover {
text-decoration: underline;
color: white;
}
</style>
2019-04-25 14:50:34 +00:00
<link rel="stylesheet" href="/assets/foundation-icons/foundation-icons.css">
<link rel="icon" type="image/x-icon" href="/assets/img/CoTech-logo.png">
2017-07-01 12:36:32 +00:00
<script type="text/javascript">
window.mapboxAccessToken = '{{ site.mapbox_access_token }}';
2017-07-01 12:36:32 +00:00
</script>
</head>