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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16b61fec651a03fc3c31bf870fd9f0aa26002c383d3b6c7a7f8cc0cbccc9533f
4
- data.tar.gz: e3b92ffc63f563b35a208b21c24c52a53749cde74f0318c974d778e65a07188c
3
+ metadata.gz: 1d4a93b4247e6bebaa3769db89b41e59b40dcf4a8464edf5a1e7dbcad5e5f1bb
4
+ data.tar.gz: 07f19927b3afa243b9b4f1ec25fc7e0156f64c993e54329d173a76f270f10db5
5
5
  SHA512:
6
- metadata.gz: 9a94b9b84a67cb1f4b7245c7f36cd2d034db1463d7e49d4f35d8a51e23005c4839076b74315964fa6cf29583df45b7a9c3e143160bb9602b3d8203d2ab786896
7
- data.tar.gz: f2001b4ad79f50a36e4165f36d715c413f0a492113079795123b4dac54db3ec4c9210edb0fa150c3b94b5e4ca64f951744726b63b87636a280005b00702aa397
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 -%}
@@ -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>
@@ -37,7 +37,7 @@
37
37
  </p>
38
38
  {% endif %}
39
39
  <span class="warning">
40
- This translated term may not be from the same source as the definitive term. Use at your own risk.
40
+ This translated term may not be from the same source as the normative term.
41
41
  </span>
42
42
  {% endif %}
43
43
 
@@ -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 -}}
@@ -1,9 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
 
3
3
  <html
4
- {% if site.google_analytics %}
5
- data-gaid="{{ site.google_analytics.id }}"
6
- {% endif %}
7
4
  lang="{{ page.lang | default: site.lang | default: "en" }}">
8
5
 
9
6
  {% include head.html %}
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Jekyll
5
5
  module Geolexica
6
- VERSION = "1.2.2".freeze
6
+ VERSION = "1.3.0".freeze
7
7
  end
8
8
  end
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.2.2
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-06 00:00:00.000000000 Z
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
@@ -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
- }());