mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 22:35:32 -04:00
only add matomo script and proper robots.txt in production
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<script>
|
||||
{{ if eq hugo.Environment "production" }}<script>
|
||||
var _paq = _paq || [];
|
||||
_paq.push(['setRequestMethod', 'POST']);
|
||||
_paq.push(['setSecureCookie', true]);
|
||||
@@ -11,7 +11,7 @@
|
||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
||||
g.async=true; g.defer=true; g.src=u+'stats.js'; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
</script>
|
||||
</script>{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Reference in New Issue
Block a user