4
0
mirror of https://git.coop/cotech/website.git synced 2025-08-10 15:36:48 +00:00
Files
cotech-website/_includes/head.html
Chris Lowis adc0477e39 Update the favicon
I took the SVG favicon from the brand assets pack Creative Coop
produced and put it through an online tool[1] to
generate these files.

[1] https://realfavicongenerator.net
2025-06-30 21:05:47 +01:00

65 lines
3.5 KiB
HTML

<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% 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 %}
<meta name="description" content="{{ site.description }}" />
{% endif %}
<meta charset="UTF-8">
{% if page.layout == "home" %}
<title>{{ page.title }} &laquo; {{ site.long_title }}</title>
{% else %}
<title>{{ page.title }} &laquo; {{ site.title }} &laquo; {{ site.long_title }}</title>
{% endif %}
<meta property="og:type" content="website" />
{% if page.layout == "home" %}
<meta property="og:title" content="{{ page.title }} &laquo; {{ site.long_title }}" />
{% else %}
<meta property="og:title" content="{{ page.title }} &laquo; {{ site.title }} &laquo; {{ site.long_title }}" />
{% endif %}
{% 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 %}
<meta property="og:description" content="{{ site.description }}" />
{% endif %}
<meta property="og:site_name" content="{{ page.title }} &laquo; {{ site.long_title }}" />
{% if page.collection == 'coops' %}
<meta property="og:image" content="/images/coops/{{ page.slug }}.png" />
{% elsif page.collection == 'services' %}
<meta property="og:image" content="/images/services/{{ page.slug }}.png" />
{% elsif page.collection == 'technologies' %}
<meta property="og:image" content="/images/technologies/{{ page.slug }}.png" />
{% elsif page.collection == 'clients' %}
<meta property="og:image" content="/images/clients/{{ page.slug }}.png" />
{% else %}
<meta property="og:image" content="/assets/img/Cotech_512x512.png" />
{% endif %}
<meta property="og:locale" content="en_GB" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@CotechUK" />
{% if page.collection == 'coops' %}
<meta name="twitter:image" content="{{ site.url }}/images/coops/{{ page.slug }}.png" />
{% elsif page.collection == 'services' %}
<meta name="twitter:image" content="{{ site.url }}/images/services/{{ page.slug }}.png" />
{% elsif page.collection == 'technologies' %}
<meta name="twitter:image" content="{{ site.url }}/images/technologies/{{ page.slug }}.png" />
{% elsif page.collection == 'clients' %}
<meta name="twitter:image" content="{{ site.url }}/images/clients/{{ page.slug }}.png" />
{% else %}
<meta name="twitter:image" content="{{ site.url }}/assets/img/Cotech_512x512.png" />
{% endif %}
<link rel="canonical" href="{{ page.url | absolute_url }}" />
<link rel='stylesheet' href='/assets/css/reset.css' type='text/css' media='all' />
<link rel='stylesheet' id='app-css' href='/assets/css/app.css' type='text/css' media='all' />
<link rel="icon" type="image/png" href="/assets/img/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/assets/img/favicon.svg" />
<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/img/apple-touch-icon.png" />
<meta name="apple-mobile-web-app-title" content="CoTech" />
<link rel="manifest" href="/assets/img/site.webmanifest" />
</head>