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 +4 -4
- data/README.md +6 -0
- data/_includes/head.html +4 -0
- data/_includes/piwik.html +15 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c261d8f44e171320458c46557633b27f631d8c99
|
4
|
+
data.tar.gz: 54c6068d9089799403c71108f61674caf309839c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/_includes/head.html
CHANGED
@@ -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.
|
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:
|
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
|