1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 04:55:30 -04:00

only add matomo script and proper robots.txt in production

This commit is contained in:
2019-09-30 19:19:23 -04:00
parent 25f9ec97eb
commit 5b5d961a63
3 changed files with 7 additions and 5 deletions

View File

@@ -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>

View File

@@ -1,5 +1,8 @@
User-Agent: *
{{ if eq hugo.Environment "production" }}User-Agent: *
Disallow: /y2k/
Disallow: /comp20/
Sitemap: {{ "sitemap.xml" | absURL }}
{{ else }}User-Agent: *
Disallow: /
{{ end }}