jekyll-geolexica 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/analytics.html +12 -0
- data/_includes/head.html +3 -5
- data/_includes/localized-concept.html +1 -1
- data/_includes/title.html +1 -1
- data/_layouts/default.html +0 -3
- data/lib/jekyll/geolexica/version.rb +1 -1
- metadata +3 -3
- data/assets/js/ga.js +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d4a93b4247e6bebaa3769db89b41e59b40dcf4a8464edf5a1e7dbcad5e5f1bb
|
4
|
+
data.tar.gz: 07f19927b3afa243b9b4f1ec25fc7e0156f64c993e54329d173a76f270f10db5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b97c03227ee7329dd9ca30dea71f74c1319802eba49b7c4106e96a4291dec67f70442fbd29de5936c19e3930053b15a6f79a8d495358732b6b07f9d4e5b1897
|
7
|
+
data.tar.gz: 968941a24b91cf335f91ebaa87437ca623dbc6ca4908b936802918150c1ebaca2c282c80349f8a993b703c2d71c585662dfdb7e1501fe028e75eab1c83f88a45
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{%- assign gaid = site.google_analytics.id -%}
|
2
|
+
{%- if jekyll.environment == 'production' and gaid -%}
|
3
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
4
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ gaid }}"></script>
|
5
|
+
<script>
|
6
|
+
window.dataLayer = window.dataLayer || [];
|
7
|
+
function gtag(){dataLayer.push(arguments);}
|
8
|
+
gtag("js", new Date());
|
9
|
+
|
10
|
+
gtag("config", "{{ gaid }}");
|
11
|
+
</script>
|
12
|
+
{%- endif -%}
|
data/_includes/head.html
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
<head>
|
2
2
|
<meta charset="utf-8">
|
3
3
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
|
5
|
+
{% include analytics.html %}
|
6
|
+
|
4
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
8
|
<meta name="description" content="{{ site.description }}">
|
6
9
|
|
@@ -41,9 +44,4 @@
|
|
41
44
|
<![endif]-->
|
42
45
|
|
43
46
|
<link rel="stylesheet" type="text/css" href="{{ "/assets/style.css" | relative_url }}" />
|
44
|
-
|
45
|
-
{% if jekyll.environment == 'production' and site.google_analytics %}
|
46
|
-
<script src="{{ "/assets/js/ga.js" | relative_url }}"></script>
|
47
|
-
{% endif %}
|
48
|
-
|
49
47
|
</head>
|
data/_includes/title.html
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
{% assign title = page.term | default: page.title | default: site.title -%}
|
2
|
-
{{ title | escape }} — {{ site.tagline | escape }}
|
2
|
+
{{ title | escape }} — {{ site.tagline | escape -}}
|
data/_layouts/default.html
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-geolexica
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- README.adoc
|
112
112
|
- _config.yml
|
113
113
|
- _data/lang.yaml
|
114
|
+
- _includes/analytics.html
|
114
115
|
- _includes/concept-api-links.html
|
115
116
|
- _includes/concept-header.html
|
116
117
|
- _includes/concept-info.html
|
@@ -165,7 +166,6 @@ files:
|
|
165
166
|
- assets/algolia-search.js
|
166
167
|
- assets/js/concept-search-worker.js
|
167
168
|
- assets/js/concept-search.js
|
168
|
-
- assets/js/ga.js
|
169
169
|
- assets/js/nav.js
|
170
170
|
- assets/js/resource-browser.js
|
171
171
|
- assets/logo-ribose.svg
|
data/assets/js/ga.js
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
(function () {
|
2
|
-
|
3
|
-
var gaid = document.documentElement.getAttribute('data-gaid');
|
4
|
-
|
5
|
-
if (gaid) {
|
6
|
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
7
|
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
8
|
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
9
|
-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
10
|
-
|
11
|
-
ga('create', gaid, 'auto');
|
12
|
-
ga('send', 'pageview');
|
13
|
-
}
|
14
|
-
|
15
|
-
}());
|