type-on-strap 2.4.3 → 2.4.5

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: 156bbe1cf170b38f6c26d3ef1d10ec7ab44bae0f906d319fe81f236bc3655e84
4
- data.tar.gz: 70be3647db492019087c9a1dbb81efe75194a739829d9fb9807dd4fbad9195c5
3
+ metadata.gz: 59ac223fb0f31b7759001250d368dc5f60f777f5230a654a91e622e86119778f
4
+ data.tar.gz: de7216c62581d2d226e80379fe232c85c916e3f91768dbe15a935f10eb69137e
5
5
  SHA512:
6
- metadata.gz: c2106f5c0a8fdb10ee22cc986ded7efcc21eb347e7ea68b54da1a8dd9c99327cde99ef4fb8cab8b937e0b8de889fdea53a0a986a7e03316295a95e7eb53f292e
7
- data.tar.gz: 248f2a9d816a92a9ed1d8a32ebe615a49f8537cce9f88a22d313114fb36236ca383936bfcd63c27681b177dc526318d58996a1856923236b328a70542fd6f7e2
6
+ metadata.gz: 6e762537afcd2650b819616d71a90fb0330a6bc171c4024a598889774912db2e7629f657c6822d37e3f2d249ac3d047478e004fc6ecab73d53de3b34f562e364
7
+ data.tar.gz: c2cc08a7b40dde40c2a66101202d45c429fe27fa8c74c9d6ac95b0c6ee269ec76f7399bd56dc905437cc7b6071b9de4921feb5cf9d8b018aeefe98a5a5eb0490
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016-2022 Sylhare
3
+ Copyright (c) 2016-2023 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
@@ -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>
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Type on Strap jekyll theme v2.4.3
3
+ Type on Strap jekyll theme v2.4.5
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
  -->
@@ -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
+ }
@@ -31,6 +31,7 @@
31
31
  /* Posts */
32
32
  // Linked with the html in the _layouts folder
33
33
  @import 'layouts/posts';
34
+ @import 'layouts/categories';
34
35
  @import 'layouts/blog';
35
36
  @import 'layouts/page';
36
37
  @import 'layouts/tags';
@@ -1 +1,5 @@
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
+ /* @preserve Cookie Consent Init */
2
+ function createCookie(e,t,n){var o="";if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3),o="; expires="+i.toUTCString()}document.cookie=`${e}=${t}${o}; 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(){if(""!==analyticsName.toLowerCase()){function e(){dataLayer.push(arguments)}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()
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"),n=document.querySelector("nav ul");["click","touch"].forEach((function(e){t?.addEventListener(e,(function(){n.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")}))}));
@@ -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
  });