Compare commits

..

2 Commits

Author SHA1 Message Date
Ray Elliott 3f0923d045 update hosting provider 2020-10-04 20:56:52 +01:00
Ray Elliott 3d234d4ec3 replace open web analytics with google 2020-10-04 20:56:27 +01:00
3 changed files with 10 additions and 18 deletions

View File

@ -1,4 +1,4 @@
Note - push to Dokku by doing a `git push` in the build directory: Note - push to production by doing a `git push` in the build directory:
`rayelliott.dev/`. `rayelliott.dev/`.
Serve development server with: Serve development server with:

View File

@ -86,6 +86,15 @@
{{ end -}} {{ end -}}
{{ hugo.Generator }} {{ hugo.Generator }}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-179219763-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-179219763-1', { 'anonymize_ip': true });
</script>
</head> </head>
{{ $csClass := "colorscheme-light" }} {{ $csClass := "colorscheme-light" }}
@ -108,17 +117,6 @@
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
<script src="{{ .Site.Params.baseURL | absURL }}js/script.js"></script> <script src="{{ .Site.Params.baseURL | absURL }}js/script.js"></script>
<script>
owa_cmds.push(['setSiteId', '9010bbc622d7c2514fd73db73f05d89c']);
owa_cmds.push(['trackPageView']);
owa_cmds.push(['trackClicks']);
(function() {
var _owa = document.createElement('script'); _owa.type = 'text/javascript'; _owa.async = true;
owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl );
_owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
}());
</script>
</body> </body>
</html> </html>

View File

@ -1,6 +0,0 @@
#!/bin/sh
_password="$1"
./build.sh
lftp -e "mirror -R blog ." -u "hugo@rayelliott.dev,$_password" ftp://ftp.rayelliott.dev