type-on-strap 2.4.4 → 2.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +4 -2
- data/_includes/blog/post_info.liquid +1 -1
- data/_includes/default/head.liquid +0 -2
- data/_includes/default/navbar.liquid +2 -2
- data/_includes/social/cusdis.liquid +1 -1
- data/_layouts/categories.liquid +38 -0
- data/_layouts/default.html +1 -1
- data/_sass/base/_global.scss +13 -0
- data/_sass/layouts/_categories.scss +87 -0
- data/_sass/type-on-strap.scss +1 -0
- data/assets/js/main.min.js +5 -1
- data/assets/js/partials/cookie_consent_init.js +6 -10
- data/assets/js/vendor/mermaid.min.js +1588 -2
- data/assets/js/vendor/simple-jekyll-search.min.js +1 -1
- metadata +12 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ace9770fb50b11260a1db0d08ebe8ed2c4449d2fcb2d395366182842f84171f
|
4
|
+
data.tar.gz: 108a885ba09192f3fbdb8211ba66430503bd1b552764ee90ab1654381891d002
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c3017dd0c517f2089252307095e838b557be3418941cb92908f439693bd1b7668fa6b8dd9fc3e587d5c63bc63d1ed45a379ad0fdf9c513b194cdbdac187c58c
|
7
|
+
data.tar.gz: 14f34def7f989e3d753ba045e939c9824037d39b8a08e93cb337c3b5318ba6ccb774c4350e5ad1ad7a3e2a64971073c2a98575a9ebb16dd3c24a9a7bfe4346fb
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -168,13 +168,15 @@ By default, it is in english, but you can easily add your own language.
|
|
168
168
|
|
169
169
|
### Google Analytics
|
170
170
|
|
171
|
-
To enable Google Analytics, add your [
|
171
|
+
To enable Google Analytics (GA4), add your [Measurement ID](https://support.google.com/analytics/answer/12270356?hl=en&sjid=1593376271608310401-NA)
|
172
172
|
to `_config.yml` like so:
|
173
173
|
|
174
174
|
```yml
|
175
|
-
google_analytics:
|
175
|
+
google_analytics: G-XXXXXXXXXX
|
176
176
|
```
|
177
177
|
|
178
|
+
It will use the [Google Tag Manager](https://support.google.com/analytics/answer/10220869?hl=en&ref_topic=9355633&sjid=1593376271608310401-NA)
|
179
|
+
|
178
180
|
### Comments 💬
|
179
181
|
|
180
182
|
#### Disqus
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<div class="post-info">
|
5
5
|
{%- if author.url -%}<a href="{{ author.url | relative_url }}" target="_blank" rel="noopener">{%- endif -%}
|
6
6
|
{% if author.avatar %}
|
7
|
-
<img alt="Author's avatar" src="{{ author.avatar | relative_url }}">
|
7
|
+
<img alt="Author's avatar" src="{{ author.avatar | relative_url }}" loading="lazy">
|
8
8
|
{% endif %}
|
9
9
|
<p class="meta">
|
10
10
|
{% if author.name %}{{ author.name }} - {% endif %}
|
@@ -68,8 +68,6 @@
|
|
68
68
|
{% if site.google_analytics %}
|
69
69
|
<!-- Global site tag (gtag.js) -->
|
70
70
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
71
|
-
<!-- Page analysis (analytics.js) -->
|
72
|
-
<script async src='https://www.google-analytics.com/analytics.js'></script>
|
73
71
|
{% endif %}
|
74
72
|
|
75
73
|
<!-- seo tags -->
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<div class="branding">
|
5
5
|
{% if site.avatar %}
|
6
6
|
<a href="{{ '/' | relative_url }}">
|
7
|
-
<img alt="logo img" class="avatar" src="{{ site.avatar | relative_url }}" />
|
7
|
+
<img alt="logo img" class="avatar" src="{{ site.avatar | relative_url }}" loading="lazy"/>
|
8
8
|
</a>
|
9
9
|
{% endif %}
|
10
10
|
<a class="site-title" aria-label="{{ site.title }}" href="{{ '/' | relative_url }}">
|
@@ -34,7 +34,7 @@
|
|
34
34
|
{% endunless %}
|
35
35
|
{% assign name_page = page.title | append: name_page %}
|
36
36
|
{% endfor %}
|
37
|
-
|
37
|
+
|
38
38
|
{% if site.color_theme == 'auto' %}
|
39
39
|
<li class="separator"> | </li>
|
40
40
|
<li><a id="theme-toggle" title="{{ page.title }} " aria-label="{{ page.title }}" onclick="themeToggle()"></a></li>
|
@@ -10,4 +10,4 @@
|
|
10
10
|
{% if site.data.language.cusdis_lang %}
|
11
11
|
<script defer src="https://cusdis.com/js/widget/lang/{{ site.data.language.cusdis_lang }}.js"></script>
|
12
12
|
{% endif %}
|
13
|
-
<script
|
13
|
+
<script defer src="https://cusdis.com/js/cusdis.es.js"></script>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="home">
|
6
|
+
<div id="categories">
|
7
|
+
<section class="bg"></section>
|
8
|
+
<ul class="category-clouds">
|
9
|
+
{% for category in site.categories %}
|
10
|
+
<a href="#{{ category | first | cgi_escape }}" class="category-anchor">
|
11
|
+
<li>
|
12
|
+
{{ category | first }}
|
13
|
+
<!-- {{ category | last | size | times: 100 | divided_by: site.tags.size | plus: 50 | divided_by: 100.0 }} -->
|
14
|
+
<!-- <span class="category-number">{{ category | last | size }}</span> -->
|
15
|
+
</li>
|
16
|
+
</a>
|
17
|
+
{% endfor %}
|
18
|
+
</ul>
|
19
|
+
<div class="category-groups">
|
20
|
+
{% for category in site.categories %}
|
21
|
+
<div class="category-group">
|
22
|
+
{% capture group %}{{ category | first }}{% endcapture %}
|
23
|
+
<h4 id="{{ group }}" class="title">{{ group }}</h4>
|
24
|
+
<div class="items">
|
25
|
+
{% for post in site.categories[group] %}
|
26
|
+
<a href="{{ post.url | relative_url }}" class="category-post-link">
|
27
|
+
<div class="item">
|
28
|
+
<p class="meta">{{ post.date | date: "%B %-d, %Y" }}</p>
|
29
|
+
<p class="title">{{ post.title }}</p>
|
30
|
+
</div>
|
31
|
+
</a>
|
32
|
+
{% endfor %}
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
{% endfor %}
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</div>
|
data/_layouts/default.html
CHANGED
data/_sass/base/_global.scss
CHANGED
@@ -186,6 +186,7 @@ p,
|
|
186
186
|
ol,
|
187
187
|
ul,
|
188
188
|
dl,
|
189
|
+
details,
|
189
190
|
.math-display {
|
190
191
|
line-height: 1.5;
|
191
192
|
margin-bottom: 1em;
|
@@ -237,6 +238,17 @@ kbd {
|
|
237
238
|
white-space: nowrap;
|
238
239
|
}
|
239
240
|
|
241
|
+
details {
|
242
|
+
& > summary {
|
243
|
+
cursor: pointer;
|
244
|
+
display: list-item;
|
245
|
+
}
|
246
|
+
|
247
|
+
&[open] > summary {
|
248
|
+
color: var(--link);
|
249
|
+
}
|
250
|
+
}
|
251
|
+
|
240
252
|
// Cookie consent
|
241
253
|
#cookie-notice {
|
242
254
|
padding: 0.5rem 1rem;
|
@@ -270,3 +282,4 @@ kbd {
|
|
270
282
|
max-width: 100%;
|
271
283
|
}
|
272
284
|
}
|
285
|
+
|
@@ -0,0 +1,87 @@
|
|
1
|
+
#categories {
|
2
|
+
.category-clouds {
|
3
|
+
margin: 30px 0 30px;
|
4
|
+
|
5
|
+
li {
|
6
|
+
background-color: var(--link);
|
7
|
+
display: inline-block;
|
8
|
+
margin-bottom: 10px;
|
9
|
+
margin-right: 3px;
|
10
|
+
padding: 0 15px;
|
11
|
+
border-radius: 20px;
|
12
|
+
color: var(--header-text);
|
13
|
+
font-weight: 600;
|
14
|
+
font-size: 0.8rem;
|
15
|
+
line-height: 35px;
|
16
|
+
letter-spacing: -0.03rem;
|
17
|
+
|
18
|
+
.category-number {
|
19
|
+
vertical-align: super;
|
20
|
+
font-size: 0.625rem;
|
21
|
+
}
|
22
|
+
|
23
|
+
.p {
|
24
|
+
opacity: 1;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
li:hover {
|
29
|
+
background-color: var(--header-background) !important;
|
30
|
+
color: var(--header-text);
|
31
|
+
}
|
32
|
+
|
33
|
+
.category-anchor:hover {
|
34
|
+
text-decoration: none !important;
|
35
|
+
filter: none;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.category-group {
|
40
|
+
padding: 15px 0 10px;
|
41
|
+
|
42
|
+
.title {
|
43
|
+
margin-bottom: 10px;
|
44
|
+
}
|
45
|
+
|
46
|
+
.items {
|
47
|
+
padding-left: $padding-medium;
|
48
|
+
|
49
|
+
.item {
|
50
|
+
position: relative;
|
51
|
+
margin: 25px 0;
|
52
|
+
|
53
|
+
.meta {
|
54
|
+
color: var(--meta);
|
55
|
+
font-size: 0.85rem;
|
56
|
+
}
|
57
|
+
|
58
|
+
.title {
|
59
|
+
font-weight: 600;
|
60
|
+
color: var(--text);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.item::before {
|
65
|
+
content: "";
|
66
|
+
position: absolute;
|
67
|
+
left: -5%;
|
68
|
+
width: 8px;
|
69
|
+
background-color: var(--selection);
|
70
|
+
border-radius: 8px;
|
71
|
+
height: 100%;
|
72
|
+
}
|
73
|
+
|
74
|
+
.category-post-link:hover {
|
75
|
+
text-decoration: none;
|
76
|
+
|
77
|
+
.meta, .title {
|
78
|
+
color: var(--header-background);
|
79
|
+
}
|
80
|
+
|
81
|
+
.item::before {
|
82
|
+
background-color: var(--link);
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
data/_sass/type-on-strap.scss
CHANGED
data/assets/js/main.min.js
CHANGED
@@ -1 +1,5 @@
|
|
1
|
-
|
1
|
+
/* @preserve Cookie Consent Init */
|
2
|
+
function createCookie(e,t,o){var n="";if(o){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),n="; expires="+i.toUTCString()}document.cookie=`${e}=${t}${n}; path=/`}function readCookie(e){for(var t=e+"=",o=document.cookie.split(";"),n=0;n<o.length;n++){for(var i=o[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}function addCookieConsentListener(){document.getElementById("cookie-notice-accept").addEventListener("click",(function(){createCookie(cookieName,"true",31),document.getElementById("cookie-notice").style.display="none",location.reload()}))}function googleAnalytics(){if(""!==analyticsName.toLowerCase()){function e(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],e("js",new Date),e("config",analyticsName,{anonymize_ip:!0}),analyticsNameGA4&&e("config",analyticsNameGA4,{anonymize_ip:!0})}}"true"===isCookieConsent.toLowerCase()?(addCookieConsentListener(),"true"===readCookie(cookieName)?googleAnalytics():document.getElementById("cookie-notice").style.display="block"):googleAnalytics()
|
3
|
+
/* @preserve Dark mode Init */;const themeButton={light:'<i class="fas fa-adjust" aria-hidden="true"></i>',dark:'<i class="fas fa-adjust fa-rotate-180" aria-hidden="true"></i>'},currentTheme=()=>sessionStorage.getItem("theme");function setMode(e){document.documentElement.setAttribute("data-theme",e),sessionStorage.setItem("theme",e);const t=document.getElementById("theme-toggle");t&&(t.innerHTML=themeButton[e])}function themeToggle(){setMode("light"===currentTheme()?"dark":"light")}window.onload=function(){if(isAutoTheme){if(!currentTheme()){let e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener("change",(()=>{e.matches&&sessionStorage.setItem("theme","dark")}))}let e=currentTheme();setMode(e||"light")}}
|
4
|
+
/* @preserve Masonry Init */;try{var elem=document.querySelector(".grid"),msnry=new Masonry(elem,{itemSelector:".grid-item",columnWidth:".grid-sizer",gutter:".gutter-sizer",percentPosition:!0}),imgLoad=imagesLoaded(elem);imgLoad.on("progress",(function(e,t){msnry.layout()}))}catch(e){if(!(e instanceof ReferenceError))throw e}
|
5
|
+
/* @preserve Navbar */document.addEventListener("DOMContentLoaded",(function(e){const t=document.getElementById("pull"),o=document.querySelector("nav ul");["click","touch"].forEach((function(e){t?.addEventListener(e,(function(){o.classList.toggle("hide")}),!1)})),window.addEventListener("scroll",(function(){const e=-(window.scrollY||window.pageYOffset||document.body.scrollTop)/3,t=document.getElementById("main");t&&(t.style.backgroundPosition="100% "+(e-50)+"px, 0%, center top")}))}));
|
@@ -34,23 +34,19 @@ function googleAnalytics() {
|
|
34
34
|
window.dataLayer = window.dataLayer || [];
|
35
35
|
function gtag() { dataLayer.push(arguments); }
|
36
36
|
gtag('js', new Date());
|
37
|
-
gtag('config', analyticsName);
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
window.ga = window.ga || function () { (ga.q = ga.q || []).push(arguments) };
|
42
|
-
ga.l = +new Date;
|
43
|
-
ga('create', analyticsName, 'auto');
|
44
|
-
ga('send', 'pageview');
|
37
|
+
gtag('config', analyticsName, { 'anonymize_ip': true });
|
38
|
+
if (analyticsNameGA4) {
|
39
|
+
gtag('config', analyticsNameGA4, { 'anonymize_ip': true });
|
40
|
+
}
|
45
41
|
}
|
46
42
|
}
|
47
43
|
|
48
44
|
if (isCookieConsent.toLowerCase() === 'true') {
|
49
45
|
addCookieConsentListener();
|
50
46
|
if (readCookie(cookieName) === 'true') {
|
51
|
-
|
47
|
+
googleAnalytics();
|
52
48
|
} else {
|
53
|
-
|
49
|
+
document.getElementById('cookie-notice').style.display = 'block';
|
54
50
|
}
|
55
51
|
} else {
|
56
52
|
googleAnalytics();
|