Remove analytics
This commit is contained in:
parent
963311baa3
commit
02ff03cb22
4 changed files with 51 additions and 54 deletions
80
Gemfile.lock
80
Gemfile.lock
|
@ -1,20 +1,21 @@
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
|
addressable (2.5.2)
|
||||||
|
public_suffix (>= 2.0.2, < 4.0)
|
||||||
blankslate (2.1.2.4)
|
blankslate (2.1.2.4)
|
||||||
celluloid (0.16.0)
|
classifier-reborn (2.2.0)
|
||||||
timers (~> 4.0.0)
|
|
||||||
classifier-reborn (2.0.3)
|
|
||||||
fast-stemmer (~> 1.0)
|
fast-stemmer (~> 1.0)
|
||||||
coffee-script (2.3.0)
|
coffee-script (2.4.1)
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.8.0)
|
coffee-script-source (1.11.1)
|
||||||
colorator (0.1)
|
colorator (0.1)
|
||||||
execjs (2.2.2)
|
execjs (2.7.0)
|
||||||
|
faraday (0.15.0)
|
||||||
|
multipart-post (>= 1.2, < 3)
|
||||||
fast-stemmer (1.0.2)
|
fast-stemmer (1.0.2)
|
||||||
ffi (1.9.6)
|
ffi (1.9.23)
|
||||||
hitimes (1.2.2)
|
|
||||||
jekyll (2.5.3)
|
jekyll (2.5.3)
|
||||||
classifier-reborn (~> 2.0)
|
classifier-reborn (~> 2.0)
|
||||||
colorator (~> 0.1)
|
colorator (~> 0.1)
|
||||||
|
@ -30,41 +31,56 @@ GEM
|
||||||
redcarpet (~> 3.1)
|
redcarpet (~> 3.1)
|
||||||
safe_yaml (~> 1.0)
|
safe_yaml (~> 1.0)
|
||||||
toml (~> 0.1.0)
|
toml (~> 0.1.0)
|
||||||
jekyll-coffeescript (1.0.1)
|
jekyll-coffeescript (1.1.1)
|
||||||
coffee-script (~> 2.2)
|
coffee-script (~> 2.2)
|
||||||
jekyll-gist (1.1.0)
|
coffee-script-source (~> 1.11.1)
|
||||||
|
jekyll-gist (1.5.0)
|
||||||
|
octokit (~> 4.2)
|
||||||
jekyll-paginate (1.1.0)
|
jekyll-paginate (1.1.0)
|
||||||
jekyll-sass-converter (1.3.0)
|
jekyll-sass-converter (1.5.2)
|
||||||
sass (~> 3.2)
|
sass (~> 3.4)
|
||||||
jekyll-watch (1.2.0)
|
jekyll-watch (1.5.1)
|
||||||
listen (~> 2.7)
|
listen (~> 3.0)
|
||||||
kramdown (1.5.0)
|
kramdown (1.16.2)
|
||||||
liquid (2.6.1)
|
liquid (2.6.3)
|
||||||
listen (2.8.5)
|
listen (3.1.5)
|
||||||
celluloid (>= 0.15.2)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
rb-fsevent (>= 0.9.3)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
rb-inotify (>= 0.9)
|
ruby_dep (~> 1.2)
|
||||||
mercenary (0.3.5)
|
mercenary (0.3.6)
|
||||||
|
multipart-post (2.0.0)
|
||||||
|
octokit (4.9.0)
|
||||||
|
sawyer (~> 0.8.0, >= 0.5.3)
|
||||||
parslet (1.5.0)
|
parslet (1.5.0)
|
||||||
blankslate (~> 2.0)
|
blankslate (~> 2.0)
|
||||||
posix-spawn (0.3.9)
|
posix-spawn (0.3.13)
|
||||||
pygments.rb (0.6.0)
|
public_suffix (3.0.2)
|
||||||
|
pygments.rb (0.6.3)
|
||||||
posix-spawn (~> 0.3.6)
|
posix-spawn (~> 0.3.6)
|
||||||
yajl-ruby (~> 1.1.0)
|
yajl-ruby (~> 1.2.0)
|
||||||
rb-fsevent (0.9.4)
|
rb-fsevent (0.10.3)
|
||||||
rb-inotify (0.9.5)
|
rb-inotify (0.9.10)
|
||||||
ffi (>= 0.5.0)
|
ffi (>= 0.5.0, < 2)
|
||||||
redcarpet (3.2.2)
|
redcarpet (3.4.0)
|
||||||
|
ruby_dep (1.5.0)
|
||||||
safe_yaml (1.0.4)
|
safe_yaml (1.0.4)
|
||||||
sass (3.4.9)
|
sass (3.5.6)
|
||||||
timers (4.0.1)
|
sass-listen (~> 4.0.0)
|
||||||
hitimes
|
sass-listen (4.0.0)
|
||||||
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
|
sawyer (0.8.1)
|
||||||
|
addressable (>= 2.3.5, < 2.6)
|
||||||
|
faraday (~> 0.8, < 1.0)
|
||||||
toml (0.1.2)
|
toml (0.1.2)
|
||||||
parslet (~> 1.5.0)
|
parslet (~> 1.5.0)
|
||||||
yajl-ruby (1.1.0)
|
yajl-ruby (1.2.3)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
jekyll (~> 2.5.3)
|
jekyll (~> 2.5.3)
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
1.16.1
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -8,17 +8,16 @@ compile: clean
|
||||||
compress: compile
|
compress: compile
|
||||||
@echo "=== Compressing generated files"
|
@echo "=== Compressing generated files"
|
||||||
@find ./_site -type f | xargs zopfli --gzip --i30
|
@find ./_site -type f | xargs zopfli --gzip --i30
|
||||||
@find ./_site -type f ! -name "*.gz" | xargs -I {} bro --quality 11 --input {} --output {}.br
|
@find ./_site -type f ! -name "*.gz" | xargs -I {} brotli --quality=11 --output={}.br {}
|
||||||
@find ./_site -type f -name "*.br" | xargs chmod 644
|
@find ./_site -type f -name "*.br" | xargs chmod 644
|
||||||
@echo "Done."
|
@echo "Done."
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
@echo "=== Syncing files"
|
@echo "=== Syncing files"
|
||||||
@rsync -avz --no-o --no-g -e ssh --chmod=og=r -p --delete _site/ kempkens.io:/iocage/jails/506fd9f8-15c0-11e5-adf5-477a0b920463/root/var/www/main
|
@rsync --rsync-path="sudo rsync" -avz --no-o --no-g -e ssh --chmod=og=r -p --delete _site/ kempkens.io:/iocage/jails/webserver/root/var/www/main
|
||||||
@echo "Done."
|
@echo "Done."
|
||||||
@echo "=== Changing permissions"
|
@echo "=== Changing permissions"
|
||||||
@ssh kempkens.io chmod 755 /iocage/jails/506fd9f8-15c0-11e5-adf5-477a0b920463/root/var/www/main
|
@ssh kempkens.io sudo /usr/home/daniel/bin/chmodweb /iocage/jails/webserver/root/var/www/main
|
||||||
@ssh kempkens.io find /iocage/jails/506fd9f8-15c0-11e5-adf5-477a0b920463/root/var/www/main -type d -exec chmod 755 {} +
|
|
||||||
@echo "Done."
|
@echo "Done."
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
<script type="text/javascript">
|
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
||||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
var host = window.location.hostname;
|
|
||||||
|
|
||||||
if (host !== 'localhost' && host !== '127.0.0.1') { // No tracking on localhost
|
|
||||||
ga('create', 'UA-28082386-2', host);
|
|
||||||
ga('set', 'anonymizeIp', true);
|
|
||||||
ga('send', 'pageview');
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
</script>
|
|
|
@ -5,7 +5,5 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
{{ content }}
|
{{ content }}
|
||||||
|
|
||||||
{% include analytics.html %}
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue