type-on-strap 2.4.0 → 2.4.3

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: 8389a7d6ea215d30a665c55a1395631f0fc555772ed192956637b81390cd36d6
4
- data.tar.gz: 7bb8bef255c863b833801b5c6005c49c33a7c0d9d438f1733b3072685fa3f202
3
+ metadata.gz: 156bbe1cf170b38f6c26d3ef1d10ec7ab44bae0f906d319fe81f236bc3655e84
4
+ data.tar.gz: 70be3647db492019087c9a1dbb81efe75194a739829d9fb9807dd4fbad9195c5
5
5
  SHA512:
6
- metadata.gz: 3f4da0e9cc2b2447859de17a193b26bede24f02a8f78be88556c44ab4f8cdceac7a57fc101959ebccf5707fb7e3b5a6734548641e4ee359f9be4a0f3bb119e92
7
- data.tar.gz: 12acd5e8c2b5e807489bbffb5a9472c4488fbacf5af2be3daf396b65231f627d17f82b40df03f0b875e13e6417f3af9fee0f1d631c0d1585ea0e3e9f996744ff
6
+ metadata.gz: c2106f5c0a8fdb10ee22cc986ded7efcc21eb347e7ea68b54da1a8dd9c99327cde99ef4fb8cab8b937e0b8de889fdea53a0a986a7e03316295a95e7eb53f292e
7
+ data.tar.gz: 248f2a9d816a92a9ed1d8a32ebe615a49f8537cce9f88a22d313114fb36236ca383936bfcd63c27681b177dc526318d58996a1856923236b328a70542fd6f7e2
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016-2021 Sylhare
3
+ Copyright (c) 2016-2022 Sylhare
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -251,7 +251,7 @@ Enable the [mermaid-js](https://github.com/mermaid-js/mermaid) diagram rendering
251
251
  This will load and init the [mermaid.min.js](https://mermaid-js.github.io/mermaid/getting-started/n00b-gettingStarted.html#4-calling-mermaid-from-a-relative-link).
252
252
 
253
253
  ```yml
254
- mermaid: true # to Enable it
254
+ mermaid: default # Enable mermaid-js for diagrams, use theme: base, forest, dark, default, neutral
255
255
  ```
256
256
 
257
257
  Find all the help you need on the official [mermaid documentation](https://mermaid-js.github.io/mermaid/).
@@ -628,4 +628,4 @@ remote_theme: sylhare/Type-on-Strap
628
628
  This theme is licensed under the [The MIT License (MIT)](/LICENSE)
629
629
 
630
630
  - Pictures from [Pexels](https://www.pexels.com/) are under Creative Commons Zero (CC0) license
631
- - Fonts are licensed under the [SIL Open Font License (OFL)](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)
631
+ - Fonts are licensed under the [SIL Open Font License (OFL)](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL)
@@ -41,12 +41,15 @@
41
41
  <script defer src="{{ '/assets/js/vendor/auto-render.min.js' | relative_url }}" onload="renderMathInElement(document.body);"></script>
42
42
  {% endif %}
43
43
 
44
- <!-- Mermaid 8.13.10 -->
44
+ <!-- Mermaid 9.1.1 -->
45
45
  {% if site.mermaid %}
46
- <script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}" onload="mermaid.initialize({startOnLoad:true});"></script>
46
+ <script defer src="{{ '/assets/js/vendor/mermaid.min.js' | relative_url }}" onload="mermaid.initialize({
47
+ startOnLoad:true,
48
+ theme: '{{ site.mermaid }}',
49
+ });"></script>
47
50
  {% endif %}
48
51
 
49
- <!-- Simple Jekyll Search 1.9.1 -->
52
+ <!-- Simple Jekyll Search 1.10.0 -->
50
53
  <script src="{{ '/assets/js/vendor/simple-jekyll-search.min.js' | relative_url }}" type="text/javascript"></script>
51
54
 
52
55
  <!-- Google Analytics / Cookie Consent -->
@@ -54,6 +57,7 @@
54
57
  const cookieName = 'cookie-notice-dismissed-{{ site.url }}';
55
58
  const isCookieConsent = '{{ site.cookie_consent }}';
56
59
  const analyticsName = '{{ site.google_analytics }}';
60
+ const analyticsNameGA4 = '{{ site.google_analytics_ga4 }}';
57
61
  </script>
58
62
 
59
63
  {% if site.cookie_consent %}
@@ -10,7 +10,7 @@
10
10
  {% endif %}
11
11
 
12
12
  {% for tag in tags %}
13
- <li><a class="button" href="#{{ tag | cgi_escape }}">
13
+ <li><a class="button" href="{% unless 'Tags' == page.title %}{{ site.baseurl }}/tags{% endunless %}#{{ tag | cgi_escape }}">
14
14
  <p><i class="fas fa-tag fa-fw fa-sm"></i> {{ tag }}</p>
15
15
  </a></li>
16
16
  {% endfor %}
@@ -1,7 +1,7 @@
1
1
  <style>
2
2
  /* force scrollbar */
3
3
  html { overflow-y: scroll; }
4
-
4
+
5
5
  /* To overwrite page's padding, to get bigger images */
6
6
  /* article {padding:2%;} */
7
7
  </style>
@@ -13,10 +13,10 @@ html { overflow-y: scroll; }
13
13
  {% if image.path contains include.gallery_path %}
14
14
  {% unless image.path contains '.md' %}
15
15
  <img src="{{ image.path | relative_url }}" alt="" class="grid-item" style="padding: 0;">
16
- {% endunless %}
16
+ {% endunless %}
17
17
  {% endif %}
18
18
  {% endfor %}
19
- </div>
19
+ </div>
20
20
 
21
- <script src="{{ '/assets/js/vendor/imagesloaded.min.js' | relative_url }}" type="text/javascript"></script>
21
+ <script src="{{ '/assets/js/vendor/imagesloaded.pkgd.min.js' | relative_url }}" type="text/javascript"></script>
22
22
  <script src="{{ '/assets/js/vendor/masonry.pkgd.min.js' | relative_url }}" type="text/javascript"></script>
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Type on Strap jekyll theme v2.4.0
3
+ Type on Strap jekyll theme v2.4.3
4
4
  Theme free for personal and commercial use under the MIT license
5
5
  https://github.com/sylhare/Type-on-Strap/blob/master/LICENSE
6
6
  -->
data/_layouts/post.liquid CHANGED
@@ -56,10 +56,19 @@ layout: default
56
56
  }
57
57
 
58
58
  {% if page.color %}
59
- .feature-image a { color: {{ page.color }} !important; }
59
+ .post-content a { color: {{ page.color }} !important; }
60
+ .share-buttons a { color: {{ page.color }} !important; }
61
+ .tag-list a:not(:hover) { color: {{ page.color }} !important; }
60
62
  div#post-nav a { color: {{ page.color }} !important; }
61
63
  footer a { color: {{ page.color }} !important; }
62
64
  .site-header nav a:hover { color: {{ page.color }} !important; }
65
+ a.button:hover {
66
+ background: {{ page.color }} !important;
67
+ border: 1px solid {{ page.color }} !important;
68
+ color: white;
69
+ text-decoration: none;
70
+ filter: none;
71
+ }
63
72
  header#main {
64
73
  background-color: {{ page.color }} !important;
65
74
  background-image: url('{{ site.color_image | relative_url }}');
@@ -7,7 +7,7 @@ figure.highlight,
7
7
  .highlight code {
8
8
  position: relative;
9
9
  background: var(--base00);
10
- color: var(--base05);
10
+ color: var(--base07);
11
11
  font-family: $monospace;
12
12
  font-size: $font-size-code;
13
13
  line-height: $font-height-code;
@@ -121,7 +121,7 @@ table.rouge-table {
121
121
  .ge{ /* Generic.Emph */
122
122
  font-style: italic }
123
123
  .gh{ /* Generic.Heading */
124
- color: var(--base05);font-weight: bold }
124
+ color: var(--base07);font-weight: bold }
125
125
  .gi{ /* Generic.Inserted */
126
126
  color: var(--base0a) }
127
127
  .gp{ /* Generic.Prompt */
@@ -135,7 +135,7 @@ table.rouge-table {
135
135
  .k { /* Keyword */
136
136
  color: var(--base0d) }
137
137
  .kc{ /* Keyword.Constant */
138
- color: var(--base0d) }
138
+ color: var(--base0f) }
139
139
  .kd{ /* Keyword.Declaration */
140
140
  color: var(--base0d) }
141
141
  .kn{ /* Keyword.Namespace */
@@ -163,19 +163,19 @@ table.rouge-table {
163
163
  .mo{ /* Literal.Number.Oct */
164
164
  color: var(--base0e) }
165
165
  .n{ /* Name */
166
- color: var(--base05) }
166
+ color: var(--base07) }
167
167
  .na{ /* Name.Attribute */
168
- color: var(--base0b) }
168
+ color: var(--base0c) }
169
169
  .nb{ /* Name.Builtin */
170
170
  color: var(--base0c) }
171
171
  .nc{ /* Name.Class */
172
- color: var(--base05) }
172
+ color: var(--base07) }
173
173
  .no{ /* Name.Constant */
174
- color: var(--base05) }
174
+ color: var(--base07) }
175
175
  .nd{ /* Name.Decorator */
176
176
  color: var(--base0f) }
177
177
  .ni{ /* Name.Entity */
178
- color: var(--base05) }
178
+ color: var(--base07) }
179
179
  .ne{ /* Name.Exception */
180
180
  color: var(--base0c) }
181
181
  .nf{ /* Name.Function */
@@ -183,27 +183,31 @@ table.rouge-table {
183
183
  .nl{ /* Name.Label */
184
184
  color: var(--base0c) }
185
185
  .nn{ /* Name.Namespace */
186
- color: var(--base05) }
186
+ color: var(--base07) }
187
187
  .nt{ /* Name.Tag */
188
188
  color: var(--base08) }
189
189
  .nv{ /* Name.Variable */
190
190
  color: var(--base0c) }
191
191
  .nx{ /* Name.Other */
192
- color: var(--base05) }
192
+ color: var(--base07) }
193
193
  .o{ /* Operator */
194
194
  color: var(--base08) }
195
195
  .ow{ /* Operator.Word */
196
196
  color: var(--base0d) }
197
197
  .p{ /* Punctuation */
198
198
  color: var(--base05) }
199
+ .pi{ /* Name.Property */
200
+ color: var(--base07) }
199
201
  .py{ /* Name.Property */
200
- color: var(--base05) }
202
+ color: var(--base0d) }
201
203
  .s{ /* Literal.String */
202
204
  color: var(--base0a) }
205
+ .sa{ /* Literal.String.raw */
206
+ color: var(--base0a) }
203
207
  .sb{ /* Literal.String.Backtick */
204
208
  color: var(--base0a) }
205
209
  .sc{ /* Literal.String.Char */
206
- color: var(--base05) }
210
+ color: var(--base07) }
207
211
  .sd{ /* Literal.String.Doc */
208
212
  color: var(--base04) }
209
213
  .s2{ /* Literal.String.Double */
@@ -229,7 +233,7 @@ table.rouge-table {
229
233
  .vi{ /* Name.Variable.Instance */
230
234
  color: var(--base0c) }
231
235
  .w{ /* Text.Whitespace */
232
- color: var(--base05) }
236
+ color: var(--base07) }
233
237
  }
234
238
 
235
239
  // Fix Github syntax display
@@ -68,13 +68,13 @@ a.button {
68
68
  border: 1px solid var(--link);
69
69
  color: var(--background);
70
70
  text-decoration: none;
71
+ filter: none;
71
72
  }
72
73
  }
73
74
 
74
75
  .body-link {
75
76
  &:hover {
76
77
  text-decoration: underline;
77
- color: var(--link);
78
78
  filter: brightness(0.85);
79
79
  }
80
80
  }
@@ -83,7 +83,6 @@ a.button {
83
83
  &:hover {
84
84
  text-decoration: none;
85
85
  color: var(--link);
86
- filter: brightness(1.1);
87
86
  }
88
87
  }
89
88
 
@@ -33,7 +33,7 @@ html, html[data-theme="light"] {
33
33
  --blockquote: #eef7fa;
34
34
  --selection: #d4d4d4;
35
35
  --meta: #595959;
36
- --link: #337ab7;
36
+ --link: #0072B5;
37
37
  --header-background: #24292e;
38
38
  --header-text: #ffffff;
39
39
  --header-link: #383838;
@@ -81,11 +81,11 @@ html, html[data-theme="light"] {
81
81
  --base01: #2e3c43; // Lighter Background (Used for status bars) - NOT USED
82
82
  --base02: #314549; // Selection Background
83
83
  --base03: #546e7a; // Comments, Invisible, Line Highlighting
84
- --base04: #b2ccd6; // Dark Foreground (Used for status bars) - NOT USED
85
- --base05: #eeffff; // Light Foreground (Not often used)
86
- --base06: #eeffff; // Light Background (Not often used)
84
+ --base04: #b2ccd6; // Dark Foreground (Used for status bars)
85
+ --base05: #eeffff; // Punctuation
86
+ --base06: #eeffff; // Highlight, Light Background
87
87
  --base07: #ffffff; // Default Foreground, Default text color
88
- --base08: #f07178; // Parenthesis, Caret, Delimiters, Operators
88
+ --base08: #f07178; // Operators (and Parenthesis, Caret, Delimiters)
89
89
  --base09: #f78c6c; // Classes, Markup Bold, Search Text Background
90
90
  --base0a: #ffcb6b; // Strings, Inherited Class, Markup Code, Diff Inserted
91
91
  --base0b: #98c379; // Functions, Methods, Attribute IDs, Headings
@@ -20,15 +20,10 @@
20
20
  color: var(--link);
21
21
  }
22
22
 
23
- @media (prefers-color-scheme: dark) {
24
- a {
25
- color: var(--meta);
26
- }
27
- }
28
-
29
23
  a:hover {
30
- color: var(--link);
31
- filter: brightness(0.85);
24
+ .fa-circle {
25
+ filter: brightness(0.85);
26
+ }
32
27
  }
33
28
  }
34
29
  }
@@ -69,6 +69,10 @@ header {
69
69
  img {
70
70
  height: auto;
71
71
  }
72
+
73
+ &:hover {
74
+ text-decoration: none;
75
+ }
72
76
  }
73
77
 
74
78
  img {
@@ -62,10 +62,10 @@
62
62
  font-size: 0.8em;
63
63
  line-height: normal;
64
64
  }
65
- }
66
65
 
67
- @media screen and (max-width: $sm-break) {
68
- .tag-posts .meta {
69
- display: none;
66
+ @media screen and (max-width: $sm-break) {
67
+ .meta {
68
+ display: none;
69
+ }
70
70
  }
71
71
  }
@@ -35,6 +35,7 @@ function googleAnalytics() {
35
35
  function gtag() { dataLayer.push(arguments); }
36
36
  gtag('js', new Date());
37
37
  gtag('config', analyticsName);
38
+ gtag('config', analyticsNameGA4, { 'anonymize_ip': true });
38
39
 
39
40
  // Google analytics
40
41
  window.ga = window.ga || function () { (ga.q = ga.q || []).push(arguments) };
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * imagesLoaded PACKAGED v5.0.0
3
+ * JavaScript is all like "You images are done yet or what?"
4
+ * MIT License
5
+ */
6
+ !function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
7
+ /*!
8
+ * imagesLoaded v5.0.0
9
+ * JavaScript is all like "You images are done yet or what?"
10
+ * MIT License
11
+ */
12
+ function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));