jekyll-theme-isotc211 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9cd2ff5be3922c249b9b8a0d91f4942c5b57879
4
- data.tar.gz: d5c63f0dc6c64d8fa5c299b03a97c8dcaae16ece
3
+ metadata.gz: e9da2ec8a2773a502606f2c4bdbff2964017c43a
4
+ data.tar.gz: db83314a7b4f8284dd4373a1e73e38c6a1f06eee
5
5
  SHA512:
6
- metadata.gz: b2ffe2f9091ed3b43a0e3c9f2f6d672510679c56dadf67c4f2a9818e54607800bdd673524ebd0e332b1306e04898af82583195b30d9b95d9570be6c4e2f834bf
7
- data.tar.gz: d389e87223ec658b3dd18e29a538403b2f0a3fc439d504d8f6c213ee732a24df30c6b15729203c4315042d284964692a419b1bcc5091a2a6eef061dc48da605e
6
+ metadata.gz: 23eb23c31e4c227be85052e2841578b6eb10aea53a599fc2165d12ca489d0fb0016a501a884b1f8c3165f08cf62d7c98a7afd61be08fed478c7eb40067d37f62
7
+ data.tar.gz: f232894f58dc363e7fba17b5dce36a93616e4cd548117a63a009aafbefb2a5893345cb21145b7d6130ee828828b91856fb8764cae08fc8d75eeaa8c6fb2a9cb9
data/_config.yml CHANGED
@@ -14,6 +14,9 @@ markdown: kramdown
14
14
 
15
15
  permalink: /blog/:month-:day-:year/:title/
16
16
 
17
+ # google_analytics:
18
+ # id: UA-XXXXX-Y
19
+
17
20
  # Social profile navigation
18
21
  # social:
19
22
  # links:
data/_includes/head.html CHANGED
@@ -28,8 +28,8 @@
28
28
 
29
29
  <link rel="canonical" href="{{ page.url | replace:'index.html','' | relative_url }}" />
30
30
 
31
- {% if jekyll.environment == 'production' and site.google_analytics %}
32
- {% include google-analytics.html %}
31
+ {% if site.google_analytics %}
32
+ <script src="{{ "/assets/ga.js" | relative_url }}"></script>
33
33
  {% endif %}
34
34
 
35
35
  </head>
@@ -1,6 +1,11 @@
1
1
  <!DOCTYPE html>
2
2
 
3
- <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+ <html
4
+ {% if site.google_analytics %}
5
+ data-gaid="{{ site.google_analytics.id }}"
6
+ {% endif %}
7
+ lang="{{ page.lang | default: site.lang | default: "en" }}">
8
+
4
9
  {% include head.html %}
5
10
 
6
11
  <body class="{{ page.bodyClass | default: layout.bodyClass }}">
@@ -1,12 +1,3 @@
1
- // Flexbox corrections for IE 11
2
- @media all and (-ms-high-contrast:none){
3
- body.home section.resource-row > .resource{
4
- display: inline-block;
5
- }
6
- }
7
-
8
-
9
-
10
1
  // Layout workaround without using Flexbox for IE 10 and below
11
2
 
12
3
  @media screen and (min-width:0\0) {
@@ -31,12 +22,6 @@
31
22
  display: block;
32
23
  }
33
24
 
34
- body.home section.resource-row>.resource {
35
- width: 31%;
36
- display: block;
37
- float: left;
38
- }
39
-
40
25
  body.home>main>.news .items {
41
26
  padding: 0;
42
27
  margin: 0;
@@ -59,8 +44,7 @@
59
44
  min-height: 208px;
60
45
  }
61
46
 
62
- body.home>main>.news,
63
- body.home section.resource-row {
47
+ body.home>main>.news {
64
48
  clear: both;
65
49
  display: block;
66
50
  }
data/assets/ga.js ADDED
@@ -0,0 +1,15 @@
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
+ }());
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-isotc211
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-15 00:00:00.000000000 Z
11
+ date: 2019-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -133,7 +133,6 @@ files:
133
133
  - README.md
134
134
  - _config.yml
135
135
  - _includes/copyright.html
136
- - _includes/google-analytics.html
137
136
  - _includes/head.html
138
137
  - _includes/newsroll-entry.html
139
138
  - _includes/script.html
@@ -154,6 +153,7 @@ files:
154
153
  - _sass/offsets.scss
155
154
  - _sass/post.scss
156
155
  - _sass/posts.scss
156
+ - assets/ga.js
157
157
  - assets/logo-iso-noninverted.svg
158
158
  - assets/logo-iso.svg
159
159
  - assets/logo-ribose.svg
@@ -1,11 +0,0 @@
1
- <script>
2
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6
-
7
- ga('create', '{{ site.google_analytics }}', 'auto');
8
- ga('send', 'pageview');
9
-
10
- </script>
11
-