jekyll-theme-dashui 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/head.html +23 -11
- data/_includes/scripts.html +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0ba2d50c68ba5ff5ccdcf9becca0196553174fa6920ffa9d5bf51e98c65dc91
|
4
|
+
data.tar.gz: f5cad478935e8e1a134929f235541daee0d3f30ad3fa1c6b82a9ce9d9af18b3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef898c9503e9ff3a40595794fe31285e67b6a8a4aa0b1033134afcd895e462ebe24dc244218b4b6ed6f08648fedd62541dc2410c4fca4870bd2a1c88fbf24ab4
|
7
|
+
data.tar.gz: 33cf79b4dd28c660183513d1ac4ed07aa46fd6df145d6f28eaec4bb3ac5c52baddabe39992a15df79a4040fa86aeafd70e52eb25d14fca26bb07b99d5c0d9aab
|
data/_includes/head.html
CHANGED
@@ -6,20 +6,18 @@
|
|
6
6
|
<meta charset="utf-8">
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
8
8
|
|
9
|
-
|
10
|
-
<meta name="pv-cache-enabled" content="{{ site.google_analytics.pv.enabled }}">
|
9
|
+
<meta name="pv-cache-enabled" content="{{ site.google_analytics.pv.enabled }}">
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
{% if site.google_analytics.pv.cache %}
|
19
|
-
<meta name="pv-cache-data" content="{{ '/assets/js/data/pageviews.json' | relative_url }}">
|
20
|
-
{% endif %}
|
11
|
+
{% if site.google_analytics.pv.enabled %}
|
12
|
+
{% if site.google_analytics.pv.proxy_endpoint != ''
|
13
|
+
and site.google_analytics.pv.proxy_endpoint %}
|
14
|
+
<meta name="pv-proxy-endpoint" content="{{ site.google_analytics.pv.proxy_endpoint }}">
|
15
|
+
{% endif %}
|
21
16
|
|
17
|
+
{% if site.google_analytics.pv.cache %}
|
18
|
+
<meta name="pv-cache-data" content="{{ '/assets/js/data/pageviews.json' | relative_url }}">
|
22
19
|
{% endif %}
|
20
|
+
|
23
21
|
{% endif %}
|
24
22
|
|
25
23
|
{% seo title=false %}
|
@@ -31,6 +29,20 @@
|
|
31
29
|
{{ site.title }}
|
32
30
|
</title>
|
33
31
|
|
32
|
+
<link rel="preconnect" href="https://www.google-analytics.com" crossorigin="use-credentials">
|
33
|
+
<link rel="dns-prefetch" href="https://www.google-analytics.com">
|
34
|
+
|
35
|
+
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin="anonymous">
|
36
|
+
<link rel="dns-prefetch" href="https://www.googletagmanager.com">
|
37
|
+
|
38
|
+
{% if site.google_analytics.pv.proxy_endpoint %}
|
39
|
+
{% assign proxy_url = site.google_analytics.pv.proxy_endpoint
|
40
|
+
| replace: "https://", "" | split: "/" | first | prepend: "https://" %}
|
41
|
+
|
42
|
+
<link rel="preconnect" href="{{ proxy_url }}" crossorigin="use-credentials">
|
43
|
+
<link rel="dns-prefetch" href="{{ proxy_url }}">
|
44
|
+
{% endif %}
|
45
|
+
|
34
46
|
|
35
47
|
|
36
48
|
<link rel="stylesheet" href="{{ '/assets/libs/prismjs/themes/prism.css' | relative_url }}">
|
data/_includes/scripts.html
CHANGED
@@ -28,4 +28,17 @@
|
|
28
28
|
<script type="text/javascript">
|
29
29
|
{{ page.extra_script }}
|
30
30
|
</script>
|
31
|
+
{% endif %}
|
32
|
+
|
33
|
+
{% if site.google_analytics %}
|
34
|
+
<script defer src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics.id }}"></script>
|
35
|
+
<script>
|
36
|
+
document.addEventListener("DOMContentLoaded", function(event) {
|
37
|
+
window.dataLayer = window.dataLayer || [];
|
38
|
+
function gtag(){dataLayer.push(arguments);}
|
39
|
+
|
40
|
+
gtag('js', new Date());
|
41
|
+
gtag('config', '{{ site.google_analytics.id }}');
|
42
|
+
});
|
43
|
+
</script>
|
31
44
|
{% endif %}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-dashui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fede Raimondo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|