type-on-strap 2.3.8 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +55 -36
- data/_data/icons_builder.yml +1 -1
- data/_includes/blog/{blog.html → blog.liquid} +2 -2
- data/_includes/blog/{blog_nav.html → blog_nav.liquid} +0 -0
- data/_includes/blog/{post_info.html → post_info.liquid} +1 -1
- data/_includes/blog/{post_nav.html → post_nav.liquid} +2 -2
- data/_includes/default/{footer.html → footer.liquid} +1 -1
- data/_includes/default/{head.html → head.liquid} +4 -6
- data/_includes/default/{navbar.html → navbar.liquid} +0 -0
- data/_includes/default/{tags_list.html → tags_list.liquid} +1 -1
- data/_includes/social/{cusdis.html → cusdis.liquid} +0 -0
- data/_includes/social/{disqus.html → disqus.liquid} +0 -0
- data/_includes/social/{icons.html → icons.liquid} +4 -2
- data/_includes/social/{share_buttons.html → share_buttons.liquid} +0 -0
- data/_includes/social/{utterances.html → utterances.liquid} +0 -0
- data/_layouts/{custom.md → custom.liquid} +5 -5
- data/_layouts/default.html +4 -4
- data/_layouts/home.liquid +30 -0
- data/_layouts/{page.html → page.liquid} +1 -1
- data/_layouts/{post.html → post.liquid} +10 -10
- data/_layouts/{search.html → search.liquid} +1 -1
- data/_layouts/{tags.html → tags.liquid} +4 -4
- data/_sass/base/_global.scss +17 -25
- data/_sass/base/_highlight.scss +9 -4
- data/_sass/external/_font-awesome.scss +1 -0
- data/_sass/external/_katex.scss +377 -564
- data/_sass/external/font-awesome/_stacked.scss +1 -1
- data/_sass/layouts/_blog.scss +6 -6
- data/assets/css/main.scss +1 -1
- data/assets/data/{search.json → search.liquid} +0 -0
- data/assets/fonts/katex/KaTeX_AMS-Regular.ttf +0 -0
- data/assets/fonts/katex/KaTeX_AMS-Regular.woff +0 -0
- data/assets/fonts/katex/KaTeX_AMS-Regular.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Caligraphic-Bold.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Caligraphic-Bold.woff +0 -0
- data/assets/fonts/katex/KaTeX_Caligraphic-Bold.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Caligraphic-Regular.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Caligraphic-Regular.woff +0 -0
- data/assets/fonts/katex/KaTeX_Caligraphic-Regular.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Fraktur-Bold.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Fraktur-Bold.woff +0 -0
- data/assets/fonts/katex/KaTeX_Fraktur-Bold.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Fraktur-Regular.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Fraktur-Regular.woff +0 -0
- data/assets/fonts/katex/KaTeX_Fraktur-Regular.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Main-Bold.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Main-Bold.woff +0 -0
- data/assets/fonts/katex/KaTeX_Main-Bold.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Main-BoldItalic.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Main-BoldItalic.woff +0 -0
- data/assets/fonts/katex/KaTeX_Main-BoldItalic.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Main-Italic.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Main-Italic.woff +0 -0
- data/assets/fonts/katex/KaTeX_Main-Italic.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Main-Regular.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Main-Regular.woff +0 -0
- data/assets/fonts/katex/KaTeX_Main-Regular.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Math-BoldItalic.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Math-BoldItalic.woff +0 -0
- data/assets/fonts/katex/KaTeX_Math-BoldItalic.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Math-Italic.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Math-Italic.woff +0 -0
- data/assets/fonts/katex/KaTeX_Math-Italic.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_SansSerif-Bold.ttf +0 -0
- data/assets/fonts/katex/KaTeX_SansSerif-Bold.woff +0 -0
- data/assets/fonts/katex/KaTeX_SansSerif-Bold.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_SansSerif-Italic.ttf +0 -0
- data/assets/fonts/katex/KaTeX_SansSerif-Italic.woff +0 -0
- data/assets/fonts/katex/KaTeX_SansSerif-Italic.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_SansSerif-Regular.ttf +0 -0
- data/assets/fonts/katex/KaTeX_SansSerif-Regular.woff +0 -0
- data/assets/fonts/katex/KaTeX_SansSerif-Regular.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Script-Regular.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Script-Regular.woff +0 -0
- data/assets/fonts/katex/KaTeX_Script-Regular.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Size1-Regular.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Size1-Regular.woff +0 -0
- data/assets/fonts/katex/KaTeX_Size1-Regular.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Size2-Regular.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Size2-Regular.woff +0 -0
- data/assets/fonts/katex/KaTeX_Size2-Regular.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Size3-Regular.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Size3-Regular.woff +0 -0
- data/assets/fonts/katex/KaTeX_Size3-Regular.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Size4-Regular.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Size4-Regular.woff +0 -0
- data/assets/fonts/katex/KaTeX_Size4-Regular.woff2 +0 -0
- data/assets/fonts/katex/KaTeX_Typewriter-Regular.ttf +0 -0
- data/assets/fonts/katex/KaTeX_Typewriter-Regular.woff +0 -0
- data/assets/fonts/katex/KaTeX_Typewriter-Regular.woff2 +0 -0
- data/assets/js/main.min.js +1 -1
- data/assets/js/partials/cookie_consent_init.js +2 -1
- data/assets/js/partials/dark-mode.js +3 -2
- data/assets/js/partials/masonry_init.js +1 -1
- data/assets/js/partials/navbar.js +4 -4
- data/assets/js/vendor/auto-render.min.js +1 -1
- data/assets/js/vendor/katex.min.js +1 -1
- data/assets/js/vendor/mermaid.min.js +2 -32
- metadata +22 -22
- data/_layouts/home.html +0 -14
data/_sass/layouts/_blog.scss
CHANGED
@@ -17,20 +17,20 @@
|
|
17
17
|
}
|
18
18
|
|
19
19
|
/* --- Responsive --- */
|
20
|
-
@media screen and (
|
21
|
-
background-size:
|
20
|
+
@media screen and (max-width: $m-break) {
|
21
|
+
background-size: 170% auto;
|
22
22
|
}
|
23
23
|
|
24
|
-
@media screen and (max-width:
|
24
|
+
@media screen and (max-width: 450px) {
|
25
25
|
background-size: 200% auto;
|
26
26
|
}
|
27
27
|
|
28
|
-
@media screen and (max-width:
|
28
|
+
@media screen and (max-width: 400px) {
|
29
29
|
background-size: 250% auto;
|
30
30
|
}
|
31
31
|
|
32
|
-
@media screen and (max-width:
|
33
|
-
background-size:
|
32
|
+
@media screen and (max-width: 380px) {
|
33
|
+
background-size: 280% auto;
|
34
34
|
}
|
35
35
|
|
36
36
|
p:last-child {
|
data/assets/css/main.scss
CHANGED
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/assets/js/main.min.js
CHANGED
@@ -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
|
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,3 +1,4 @@
|
|
1
|
+
/* @preserve Cookie Consent Init */
|
1
2
|
function createCookie(name, value, days) {
|
2
3
|
var expires = "";
|
3
4
|
if (days) {
|
@@ -5,7 +6,7 @@ function createCookie(name, value, days) {
|
|
5
6
|
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
6
7
|
expires = "; expires=" + date.toUTCString();
|
7
8
|
}
|
8
|
-
document.cookie = name
|
9
|
+
document.cookie = `${name}=${value}${expires}; path=/`;
|
9
10
|
}
|
10
11
|
|
11
12
|
function readCookie(name) {
|
@@ -1,9 +1,10 @@
|
|
1
|
+
/* @preserve Dark mode Init */
|
1
2
|
/*
|
2
3
|
* There are two color palettes on CSS for the data-theme: 'light' and 'dark'.
|
3
|
-
* Initially the script check if a theme is set in session storage and
|
4
|
+
* Initially the script check if a theme is set in session storage and
|
5
|
+
* alternatively listens to a MediaQuery callback looking for "prefers-color-scheme: dark".
|
4
6
|
*/
|
5
7
|
|
6
|
-
|
7
8
|
const themeButton = {
|
8
9
|
'light': '<i class="fas fa-adjust" aria-hidden="true"></i>',
|
9
10
|
'dark': '<i class="fas fa-adjust fa-rotate-180" aria-hidden="true"></i>'
|
@@ -1,11 +1,11 @@
|
|
1
|
+
/* @preserve Navbar */
|
1
2
|
document.addEventListener("DOMContentLoaded", function (event) {
|
2
3
|
|
3
4
|
/*
|
4
5
|
* Display the menu items on smaller screens
|
5
6
|
*/
|
6
|
-
|
7
|
-
|
8
|
-
|
7
|
+
const pull = document.getElementById('pull');
|
8
|
+
const menu = document.querySelector('nav ul');
|
9
9
|
|
10
10
|
['click', 'touch'].forEach(function (e) {
|
11
11
|
pull.addEventListener(e, function () {
|
@@ -17,7 +17,7 @@ document.addEventListener("DOMContentLoaded", function (event) {
|
|
17
17
|
* Make the header images move on scroll
|
18
18
|
*/
|
19
19
|
window.addEventListener('scroll', function () {
|
20
|
-
|
20
|
+
const offset = -(window.scrollY || window.pageYOffset || document.body.scrollTop) / 3;
|
21
21
|
document.getElementById("main").style.backgroundPosition = '100% ' + (offset - 50) + 'px' + ', 0%, center top';
|
22
22
|
});
|
23
23
|
});
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):"object"==typeof exports?exports.renderMathInElement=t(require("katex")):e.renderMathInElement=t(e.katex)}("undefined"!=typeof self?self:this,(function(e){return function(){"use strict";var t={
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):"object"==typeof exports?exports.renderMathInElement=t(require("katex")):e.renderMathInElement=t(e.katex)}("undefined"!=typeof self?self:this,(function(e){return function(){"use strict";var t={771:function(t){t.exports=e}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var a={};return function(){n.d(a,{default:function(){return s}});var e=n(771),t=n.n(e),r=function(e,t,r){for(var n=r,a=0,i=e.length;n<t.length;){var o=t[n];if(a<=0&&t.slice(n,n+i)===e)return n;"\\"===o?n++:"{"===o?a++:"}"===o&&a--,n++}return-1},i=/^\\begin{/,o=function(e,t){for(var n,a=[],o=new RegExp("("+t.map((function(e){return e.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")})).join("|")+")");-1!==(n=e.search(o));){n>0&&(a.push({type:"text",data:e.slice(0,n)}),e=e.slice(n));var l=t.findIndex((function(t){return e.startsWith(t.left)}));if(-1===(n=r(t[l].right,e,t[l].left.length)))break;var d=e.slice(0,n+t[l].right.length),s=i.test(d)?d:e.slice(t[l].left.length,n);a.push({type:"math",data:s,rawData:d,display:t[l].display}),e=e.slice(n+t[l].right.length)}return""!==e&&a.push({type:"text",data:e}),a},l=function(e,r){var n=o(e,r.delimiters);if(1===n.length&&"text"===n[0].type)return null;for(var a=document.createDocumentFragment(),i=0;i<n.length;i++)if("text"===n[i].type)a.appendChild(document.createTextNode(n[i].data));else{var l=document.createElement("span"),d=n[i].data;r.displayMode=n[i].display;try{r.preProcess&&(d=r.preProcess(d)),t().render(d,l,r)}catch(e){if(!(e instanceof t().ParseError))throw e;r.errorCallback("KaTeX auto-render: Failed to parse `"+n[i].data+"` with ",e),a.appendChild(document.createTextNode(n[i].rawData));continue}a.appendChild(l)}return a},d=function e(t,r){for(var n=0;n<t.childNodes.length;n++){var a=t.childNodes[n];if(3===a.nodeType){var i=l(a.textContent,r);i&&(n+=i.childNodes.length-1,t.replaceChild(i,a))}else 1===a.nodeType&&function(){var t=" "+a.className+" ";-1===r.ignoredTags.indexOf(a.nodeName.toLowerCase())&&r.ignoredClasses.every((function(e){return-1===t.indexOf(" "+e+" ")}))&&e(a,r)}()}},s=function(e,t){if(!e)throw new Error("No element provided to render");var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);r.delimiters=r.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}],r.ignoredTags=r.ignoredTags||["script","noscript","style","textarea","pre","code","option"],r.ignoredClasses=r.ignoredClasses||[],r.errorCallback=r.errorCallback||console.error,r.macros=r.macros||{},d(e,r)}}(),a=a.default}()}));
|