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:
@@ -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>
|
||||
|
||||
|
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user