type-on-strap 2.4.2 → 2.4.4

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: 4b4bbb13277b77d2a93d2837456b45e0350026ce480a4a980c216cb2ab6b694b
4
- data.tar.gz: a54cdf0f90bf33af04b42bd27fed0c29f1a409df5e8e857382b12eed7145deb9
3
+ metadata.gz: 4157a77521844cd3f5783f5d197e44235f96515940d273cae73481c59a88d930
4
+ data.tar.gz: f45cb27c4e1967784456db131d137f5787fc54d6ecd06062f85c73e80fd06fea
5
5
  SHA512:
6
- metadata.gz: a9c51c7fbdfe7c4a5ea6d460fdca02b156df66a46371517ba5d0d116a12fcd2c510fc461e0c0019f51c85ed6a1af70e4aedc09629c9e4a8f774395490a0e66ba
7
- data.tar.gz: 5beac4a06c5a55a8571a8d089364d07bef4095509a422579c739beff8f1f7390858d482a5c67c4b26daeb9fb294c40a545297dda9d579915f5becc1fb465146c
6
+ metadata.gz: ec25088df0ae54c8f60ffebcc5f49fbf7b788f9dc9f01cf2ce3f4aa2baf2f254c67869996675e64802377c4ce1ed845d75db0961d0c868b91aafa0e41a17ec82
7
+ data.tar.gz: d676492ae7ab46997529ed24850e4cdc018d504a45b544ea0fa599b61e7798ea4b71fc53afb4a95258e3f0764b8195d3db9d5c7094485b80fac57f08ff2312cf
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/).
@@ -41,9 +41,12 @@
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 9.1.0 -->
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
52
  <!-- Simple Jekyll Search 1.10.0 -->
@@ -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 %}
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Type on Strap jekyll theme v2.4.2
3
+ Type on Strap jekyll theme v2.4.4
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
  -->
@@ -1 +1 @@
1
- function createCookie(e,t,o){var n,i="";o&&((n=new Date).setTime(n.getTime()+24*o*60*60*1e3),i="; expires="+n.toUTCString()),document.cookie=`${e}=${t}${i}; 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(){function e(){dataLayer.push(arguments)}""!==analyticsName.toLowerCase()&&(window.dataLayer=window.dataLayer||[],e("js",new Date),e("config",analyticsName),window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create",analyticsName,"auto"),ga("send","pageview"))}"true"===isCookieConsent.toLowerCase()?(addCookieConsentListener(),"true"===readCookie(cookieName)?googleAnalytics():document.getElementById("cookie-notice").style.display="block"):googleAnalytics();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),document.getElementById("theme-toggle").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")})}var e=currentTheme();setMode(e||"light")}};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}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(){var e=-(window.scrollY||window.pageYOffset||document.body.scrollTop)/3;document.getElementById("main").style.backgroundPosition="100% "+(e-50)+"px, 0%, center top"})});
1
+ function createCookie(e,t,n){var o,i="";n&&((o=new Date).setTime(o.getTime()+24*n*60*60*1e3),i="; expires="+o.toUTCString()),document.cookie=e+`=${t}${i}; path=/`}function readCookie(e){for(var t=e+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var i=n[o];" "===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(){function e(){dataLayer.push(arguments)}""!==analyticsName.toLowerCase()&&(window.dataLayer=window.dataLayer||[],e("js",new Date),e("config",analyticsName),e("config",analyticsNameGA4,{anonymize_ip:!0}),window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create",analyticsName,"auto"),ga("send","pageview"))}"true"===isCookieConsent.toLowerCase()?(addCookieConsentListener(),"true"===readCookie(cookieName)?googleAnalytics():document.getElementById("cookie-notice").style.display="block"):googleAnalytics();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")})}var e=currentTheme();setMode(e||"light")}};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}document.addEventListener("DOMContentLoaded",function(e){const t=document.getElementById("pull"),n=document.querySelector("nav ul");["click","touch"].forEach(function(e){t?.addEventListener(e,function(){n.classList.toggle("hide")},!1)}),window.addEventListener("scroll",function(){var e=-(window.scrollY||window.pageYOffset||document.body.scrollTop)/3;const t=document.getElementById("main");t&&(t.style.backgroundPosition="100% "+(e-50)+"px, 0%, center top")})});
@@ -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) };
@@ -15,7 +15,10 @@ const currentTheme = () => sessionStorage.getItem('theme')
15
15
  function setMode(theme) {
16
16
  document.documentElement.setAttribute('data-theme', theme)
17
17
  sessionStorage.setItem('theme', theme)
18
- document.getElementById('theme-toggle').innerHTML = themeButton[theme]
18
+ const toggle = document.getElementById('theme-toggle')
19
+ if (toggle) {
20
+ toggle.innerHTML = themeButton[theme]
21
+ }
19
22
  }
20
23
 
21
24
  function themeToggle() {
@@ -8,7 +8,7 @@ document.addEventListener("DOMContentLoaded", function (event) {
8
8
  const menu = document.querySelector('nav ul');
9
9
 
10
10
  ['click', 'touch'].forEach(function (e) {
11
- pull.addEventListener(e, function () {
11
+ pull?.addEventListener(e, function () {
12
12
  menu.classList.toggle('hide')
13
13
  }, false);
14
14
  });
@@ -18,6 +18,9 @@ document.addEventListener("DOMContentLoaded", function (event) {
18
18
  */
19
19
  window.addEventListener('scroll', function () {
20
20
  const offset = -(window.scrollY || window.pageYOffset || document.body.scrollTop) / 3;
21
- document.getElementById("main").style.backgroundPosition = '100% ' + (offset - 50) + 'px' + ', 0%, center top';
21
+ const main = document.getElementById('main');
22
+ if (main) {
23
+ main.style.backgroundPosition = '100% ' + (offset - 50) + 'px' + ', 0%, center top';
24
+ }
22
25
  });
23
26
  });