academic 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4824ade27e5763bb4e5b09a93c427580ba2361f
4
- data.tar.gz: 5f9d6aa8367f834d61ace5719e72d94134bddbc1
3
+ metadata.gz: c261d8f44e171320458c46557633b27f631d8c99
4
+ data.tar.gz: 54c6068d9089799403c71108f61674caf309839c
5
5
  SHA512:
6
- metadata.gz: 955d00369dbd7b160817f9b118fae381d98ced7ac64a0cf3f75e115dec2c6515467f81f1d2bd3abb2590978719efef7dd01cd9109dedb093d8ec4b7444b3df17
7
- data.tar.gz: ece93d5ef213f9153e16662a94de53c33c70415c002e57d81758544b0d9cf683a24236d91b31b03479ea7f1f976c277dd916a9616b13eceb69eea8873a2415d3
6
+ metadata.gz: 80b22394310c2f1320128a094e1f6721c8f36da0d625cebb1f84059b5beb27f2d38793f5213e1badf265bffa8752563695a299f6eb9d9be2140c491cbba348d7
7
+ data.tar.gz: 71c7e583168ea5be4103e2f32b410a754f668fc4465af03bb66a1acfacd80829e6c21799464abd5daaa845f75f6d8cd9dc5908a20c158d2bae7e7e68f8829f61
data/README.md CHANGED
@@ -61,6 +61,7 @@ Table of contents:
61
61
  + Hide pages from the navigation menu
62
62
  + Add external links in the menu from the `_config.yml` file
63
63
  + 404 page layout
64
+ + Piwik tracking
64
65
 
65
66
  ## Installation
66
67
 
@@ -128,6 +129,11 @@ title_html: "<b>hello</b>world"
128
129
 
129
130
  `repo`: [optional] link to your website repo. If defined, it's added in the footer. Nothing is displayed otherwise.
130
131
 
132
+ `piwik`: [optional]
133
+
134
+ + `url`: [mandatory] URL of your Piwik Instance without a trailing slash (like `mywebsite.com/piwik`)
135
+ + `site_id`: [mandatory] The ID of your website in your Piwik instance
136
+
131
137
  #### Author
132
138
 
133
139
  `email`: [optional] add email address in about layout.
@@ -13,3 +13,7 @@
13
13
  {% if jekyll.environment == 'production' %}
14
14
  {% endif %}
15
15
  </head>
16
+
17
+ {% if site.piwik %}
18
+ {% include piwik.html %}
19
+ {% endif %}
@@ -0,0 +1,15 @@
1
+ <!-- Piwik -->
2
+ <script type="text/javascript">
3
+ var _paq = _paq || [];
4
+ // tracker methods like "setCustomDimension" should be called before "trackPageView"
5
+ _paq.push(['trackPageView']);
6
+ _paq.push(['enableLinkTracking']);
7
+ (function() {
8
+ var u=(("https:" == document.location.protocol) ? "https" : "http") + "://{{ site.piwik.url }}/";
9
+ _paq.push(['setTrackerUrl', u+'piwik.php']);
10
+ _paq.push(['setSiteId', '{{ site.piwik.site_id }}']);
11
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
12
+ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
13
+ })();
14
+ </script>
15
+ <!-- End Piwik Code -->
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: academic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - gaalcaras
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-25 00:00:00.000000000 Z
11
+ date: 2017-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -84,6 +84,7 @@ files:
84
84
  - _includes/icon-website.html
85
85
  - _includes/icon-website.svg
86
86
  - _includes/nav_menu.html
87
+ - _includes/piwik.html
87
88
  - _includes/post-li.html
88
89
  - _layouts/about.html
89
90
  - _layouts/archive.html