Skip to content

Commit

Permalink
implementing fathom script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil590 committed Aug 22, 2024
1 parent 3cae2ae commit ccdcdd1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/overrides/partials/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Fathom - simple website analytics - https://github.com/usefathom/fathom -->
<script>
(function(f, a, t, h, o, m){
a[h]=a[h]||function(){
(a[h].q=a[h].q||[]).push(arguments)
};
o=f.createElement('script'),
m=f.getElementsByTagName('script')[0];
o.async=1; o.src=t; o.id='fathom-script';
m.parentNode.insertBefore(o,m)
})(document, window, '//ic-rcs-fathom.uksouth.cloudapp.azure.com/tracker.js', 'fathom');
fathom('set', 'siteId', 'NEHMU');
fathom('trackPageview');
</script>
<!-- / Fathom -->
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ repo_url: https://github.com/ImperialCollegeLondon/RSEBlog

theme:
name: material
custom_dir: docs/overrides
logo: assets/imperial_bw.svg
palette:
# Palette toggle for automatic mode
Expand Down Expand Up @@ -34,6 +35,7 @@ extra_css:

extra_javascript:
- https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML
- https://cdn.usefathom.com/script.js

plugins:
- search
Expand Down

0 comments on commit ccdcdd1

Please sign in to comment.