jekyll-whiteglass 1.10.4 → 1.11.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +11 -1
- data/_includes/google_analytics.html +21 -9
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c80975334e2797b740692525664cbde3fbf71db318dd57cea20f8983cfb9d370
|
|
4
|
+
data.tar.gz: '085dd2dbc91d334f2f99ba1fe8dac16576bdfd86291410392bd0e5e6e748a8d1'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b4c315fd35a88c7920c0a1a2c94d22542152478ca51d909affff4c32d1558d8a632429f5850cef5bb01bed8b0928249647287172197d020920da21eb3f6634d
|
|
7
|
+
data.tar.gz: 9c3ba65ffc2242fa30fe3de0d6b5c1ddd7d6a51d47e5cfd801e31b9ebc584d2ea067d1279cf73a75e087998c9d7ac86b818291ab510323831a24ed2fefac1126
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -37,7 +37,9 @@ gem install jekyll-whiteglass
|
|
|
37
37
|
|
|
38
38
|
1. Go to [yous/whiteglass-template](https://github.com/yous/whiteglass-template).
|
|
39
39
|
2. Click "Use this template" button, and then create a repository.
|
|
40
|
-
3.
|
|
40
|
+
3. Change the options defined in _config.yml. See [Configuration](https://github.com/yous/whiteglass-template#configuration)
|
|
41
|
+
section under whiteglass-template.
|
|
42
|
+
4. Push some content, then GitHub Actions will generate the site.
|
|
41
43
|
|
|
42
44
|
## Manual Setup
|
|
43
45
|
|
|
@@ -346,6 +348,14 @@ To enable Google Analytics, add the following lines to your Jekyll site:
|
|
|
346
348
|
google_analytics: UA-NNNNNNNN-N
|
|
347
349
|
```
|
|
348
350
|
|
|
351
|
+
For Google Analytics 4, add the following lines:
|
|
352
|
+
|
|
353
|
+
``` yaml
|
|
354
|
+
google_analytics: G-NNNNNNNNNN
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
Replace `N`s with your specific ID.
|
|
358
|
+
|
|
349
359
|
## Contributing
|
|
350
360
|
|
|
351
361
|
Bug reports and pull requests are welcome on GitHub at
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
{% if site.google_analytics %}
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
{% assign prefix = site.google_analytics | slice: 0, 2 %}
|
|
3
|
+
{% if prefix == "G-" %}
|
|
4
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
5
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
|
6
|
+
<script>
|
|
7
|
+
window.dataLayer = window.dataLayer || [];
|
|
8
|
+
function gtag(){dataLayer.push(arguments);}
|
|
9
|
+
gtag('js', new Date());
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
gtag('config', '{{ site.google_analytics }}');
|
|
12
|
+
</script>
|
|
13
|
+
{% else %}
|
|
14
|
+
<!-- Google Analytics -->
|
|
15
|
+
<script>
|
|
16
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
17
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
18
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
19
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
11
20
|
|
|
12
|
-
|
|
21
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
|
22
|
+
ga('send', 'pageview');
|
|
23
|
+
</script>
|
|
24
|
+
{% endif %}
|
|
13
25
|
{% endif %}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-whiteglass
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chayoung You
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-07-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
152
152
|
- !ruby/object:Gem::Version
|
|
153
153
|
version: '0'
|
|
154
154
|
requirements: []
|
|
155
|
-
rubygems_version: 3.2.
|
|
155
|
+
rubygems_version: 3.2.22
|
|
156
156
|
signing_key:
|
|
157
157
|
specification_version: 4
|
|
158
158
|
summary: Minimal, responsive Jekyll theme for hackers.
|