fathom js in its own file

This commit is contained in:
CaptainArk 2019-01-06 23:31:08 +01:00
parent c84e5dc2c0
commit b60215862e

View File

@ -2,19 +2,7 @@
{{"<!-- Not loading Fathom on localhost //-->" | safeHTML}} {{"<!-- Not loading Fathom on localhost //-->" | safeHTML}}
{{ else }} {{ else }}
<!-- Fathom - simple website analytics - https://github.com/usefathom/fathom --> <!-- Fathom - simple website analytics - https://github.com/usefathom/fathom -->
<script> <script type="text/javascript" src="{{"js/stats.js" | relURL}}"></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, '//stats.captainark.net/tracker.js', 'fathom');
fathom('set', 'siteId', 'BYKXT');
fathom('trackPageview');
</script>
<!-- / Fathom --> <!-- / Fathom -->
{{ end }} {{ end }}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.5/css/fork-awesome.min.css" integrity="sha256-P64qV9gULPHiZTdrS1nM59toStkgjM0dsf5mK/UwBV4=" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.5/css/fork-awesome.min.css" integrity="sha256-P64qV9gULPHiZTdrS1nM59toStkgjM0dsf5mK/UwBV4=" crossorigin="anonymous">