Add Plausible analytics
This commit is contained in:
parent
a91b413e4a
commit
fa4a806b9c
|
@ -58,6 +58,9 @@ menus:
|
|||
href: /talks
|
||||
is_active: '^/talks/?'
|
||||
|
||||
plausible:
|
||||
domain: ~
|
||||
|
||||
twitter:
|
||||
name: opdavies
|
||||
url: 'https://twitter.com/%twitter.name%'
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
---
|
||||
imports:
|
||||
- sculpin_site.yml
|
||||
|
||||
plausible:
|
||||
domain: 'oliverdavies.uk'
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,700;1,300&display=swap" rel="stylesheet">
|
||||
|
||||
{% include 'meta' with { page, site } only %}
|
||||
|
||||
{% include 'plausible' with {
|
||||
plausible: site.plausible,
|
||||
} only %}
|
||||
</head>
|
||||
<body>
|
||||
{% block body %}{% endblock %}
|
||||
|
|
3
source/_partials/plausible.html.twig
Normal file
3
source/_partials/plausible.html.twig
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% if plausible.domain %}
|
||||
<script defer data-domain="{{ plausible.domain }}" src="https://plausible.io/js/plausible.js"></script>
|
||||
{% endif %}
|
Loading…
Reference in a new issue