diff --git a/_config.yml b/_config.yml index c5cf3fd..5d46d35 100644 --- a/_config.yml +++ b/_config.yml @@ -2,4 +2,6 @@ title: Hacker theme description: Hacker is a theme for GitHub Pages. show_downloads: true google_analytics: +plausible: +# plausible_script_url: https://plausible.io/js/script.js # Optional: for self-hosted Plausible instances theme: jekyll-theme-hacker \ No newline at end of file diff --git a/_includes/head-custom-plausible-analytics.html b/_includes/head-custom-plausible-analytics.html new file mode 100644 index 0000000..f172aed --- /dev/null +++ b/_includes/head-custom-plausible-analytics.html @@ -0,0 +1,4 @@ +{% if site.plausible %} + + +{% endif %} diff --git a/_includes/head-custom.html b/_includes/head-custom.html index 44cdb83..cc6b4cd 100644 --- a/_includes/head-custom.html +++ b/_includes/head-custom.html @@ -6,6 +6,9 @@ {% include head-custom-google-analytics.html %} + +{% include head-custom-plausible-analytics.html %} +