Skip to content

Commit

Permalink
content/conf: plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdarst committed Aug 11, 2023
1 parent 3c7e9b9 commit 839a11b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions content/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@
ogp_image_alt = "ASC hexagon logo; Aalto Scientific Computing; Data, Software, Computing, HPC, and Training."
ogp_custom_meta_tags = ['<meta property="twitter:creator" content="@SciCompAalto" />']


import os
if (
'GITHUB_ACTION' in os.environ
and os.environ.get('GITHUB_REPOSITORY', '').lower() == 'aaltoscicomp/blog'
and os.environ.get('GITHUB_REF') == 'refs/heads/main'
):
html_js_files = [
('https://plausible.cs.aalto.fi/js/script.js', {"data-domain": "aaltoscicomp.github.io", "defer": "defer"}),
]


intersphinx_mapping = {
'scicomp': ('https://scicomp.aalto.fi/', None),
}
Expand Down

0 comments on commit 839a11b

Please sign in to comment.