oliverdavies.uk/source/_layouts/base.html.twig
2024-10-04 21:29:07 +01:00

72 lines
3.1 KiB
Twig

<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link href="{{ site.assets.url }}/build/tailwind.css?v={{ site.assets.version }}" rel="stylesheet">
<link rel="canonical" href="{{ site.url }}{{ page.url|trim('/', 'right') }}">
<meta name="author" content="Oliver Davies">
<meta name="generator" content="Sculpin (https://sculpin.io)">
<meta name="keywords" content="Drupal Developer, Drupal Consultant, Drupal Architect, Drupal Strategist, Drupal Trainer, Triple Certified Drupal Expert, Public Speaker, Workshop Trainer, Technical Lead, Technical Coach, Software Development Coach, Automated Testing, Test-Driven Development">
<meta name="twitter:card" content="summary">
<meta name="twitter:creator" content="@opdavies">
<meta name="twitter:image" content="{{ site.assets.url }}/assets/images/od-logo.jpg">
<meta name="twitter:site" content="@opdavies">
<meta property="og:image" name="image" content="{{ site.assets.url }}/assets/images/od-logo.jpg">
<meta property="og:site_name" content="Oliver Davies">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ site.url }}{{ page.url|trim('/', 'right') }}">
{% if page.blocks.meta_description %}
<meta name="description" content="{{ page.blocks.meta_description }}">
{% elseif page.meta.description %}
<meta name="description" content="{{ page.meta.description }}">
{% else %}
<meta name="description" content="{{ site.meta.description }}">
{% endif %}
{% block head_title %}
{% if page.meta.title %}
<title>{{ page.meta.title }}</title>
<meta property="og:title" content="{{ page.meta.title }}">
<meta property="twitter:title" content="{{ page.meta.title }}">
{% else %}
<title>{{ page.title }} | {{ site.name }}</title>
<meta property="og:title" content="{{ page.title }} | {{ site.name }}">
<meta property="twitter:title" content="{{ page.title }} | {{ site.name }}">
{% endif %}
{% endblock %}
{% block styles %}{% endblock %}
{% if site.hotjar.id %}
<!-- Hotjar Tracking Code for https://www.oliverdavies.uk -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:{{ site.hotjar.id }},hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
{% endif %}
</head>
<body>
{% block body %}{% endblock %}
{# Add the Mastodon verification link so pages can be verified. #}
<a class="hidden" rel="me" href="{{ site.mastodon.url }}">Mastodon</a>
{% if site.plausible.domain %}
<script defer data-domain="{{ site.plausible.domain }}" src="https://plausible.io/js/script.js"></script>
{% endif %}
{% block scripts %}{% endblock %}
</body>
</html>