diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index 8ef4637a..88a3e7eb 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -58,6 +58,9 @@ menus: href: /talks is_active: '^/talks/?' +plausible: + domain: ~ + twitter: name: opdavies url: 'https://twitter.com/%twitter.name%' diff --git a/app/config/sculpin_site_prod.yml b/app/config/sculpin_site_prod.yml index 1b449f61..7da65833 100644 --- a/app/config/sculpin_site_prod.yml +++ b/app/config/sculpin_site_prod.yml @@ -1,3 +1,6 @@ --- imports: - sculpin_site.yml + +plausible: + domain: 'oliverdavies.uk' diff --git a/source/_layouts/app.html.twig b/source/_layouts/app.html.twig index 74a8df09..e39ccae8 100644 --- a/source/_layouts/app.html.twig +++ b/source/_layouts/app.html.twig @@ -6,6 +6,10 @@ {% include 'meta' with { page, site } only %} + + {% include 'plausible' with { + plausible: site.plausible, + } only %}
{% block body %}{% endblock %} diff --git a/source/_partials/plausible.html.twig b/source/_partials/plausible.html.twig new file mode 100644 index 00000000..11e54212 --- /dev/null +++ b/source/_partials/plausible.html.twig @@ -0,0 +1,3 @@ +{% if plausible.domain %} + +{% endif %}