Skip to content

Commit

Permalink
add plausible setup
Browse files Browse the repository at this point in the history
  • Loading branch information
weilinscenccs committed Aug 21, 2024
1 parent 24eb024 commit 933ecda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions content/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,9 @@ class TypealongDirective(_BaseCRDirective):
def setup(app):
for obj in DIRECTIVES:
app.add_directive(obj.get_cssname(), obj)

import os
if os.environ.get('GITHUB_REF', '') == 'refs/heads/main':
html_js_files = [
('https://plausible.io/js/script.js', {"data-domain": "enccs.github.io/emto-best-practices", "defer": "defer"}),
]

0 comments on commit 933ecda

Please sign in to comment.