Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add plausible analytics, closes #22
  • Loading branch information
mireille-raad committed Nov 1, 2021
commit 3fef9f8f675ac58d5000bbc48eb683800d5f3d4a
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ dashboards:
url: /pages/whats-left
- title: Benchmarks
url: /benchmarks
- title: Website Analytics
url: https://plausible.io/rustpython.github.io

# Build settings
theme: minima
Expand Down
9 changes: 5 additions & 4 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link defer async rel="stylesheet" href="{{ "/assets/style.css" | relative_url }}">
<link defer async rel="stylesheet" href="{{ "/assets/media.css" | relative_url }}">
<link defer async rel="stylesheet" href="{{ "/assets/github.css" | relative_url }}">

<!-- webmanifest -->
<link rel="manifest" href="{{site.baseurl}}/manifest.webmanifest">

Expand All @@ -21,7 +21,8 @@
<link rel="apple-touch-icon" href="{{site.baseurl}}/assets/apple-touch-icon.png">

{%- feed_meta -%}
{%- if jekyll.environment == 'production' and site.google_analytics -%}
{%- include google-analytics.html -%}
{%- endif -%}

<!-- plausible analytics -->
<script defer data-domain="rustpython.github.io" src="https://plausible.io/js/plausible.js"></script>

</head>