type-on-strap 2.0.3 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +123 -70
- data/_data/language.yml +3 -0
- data/_includes/aligner.html +19 -0
- data/_includes/citation.html +2 -0
- data/_includes/disqus.html +12 -10
- data/_includes/head.html +28 -23
- data/_includes/icons.html +3 -3
- data/_layouts/custom.html +21 -24
- data/_layouts/default.html +2 -2
- data/_layouts/home.html +6 -6
- data/_layouts/page.html +15 -12
- data/_layouts/post.html +16 -16
- data/_layouts/search.html +3 -3
- data/_sass/base/_global.scss +3 -6
- data/_sass/base/_highlight.scss +288 -0
- data/_sass/base/_variables.scss +39 -21
- data/_sass/includes/_cookie_consent.scss +17 -0
- data/_sass/includes/_footer.scss +1 -0
- data/_sass/includes/_navbar.scss +18 -15
- data/_sass/layouts/_page.scss +29 -1
- data/_sass/layouts/_posts.scss +5 -1
- data/_sass/type-on-strap.scss +11 -10
- data/assets/data/search.json +2 -2
- data/assets/js/main.min.js +1 -1
- data/assets/js/partials/cookie_consent_init.js +57 -0
- data/assets/js/partials/navbar.js +8 -8
- data/assets/js/vendor/simple-jekyll-search.min.js +3 -3
- metadata +11 -8
- data/_includes/share_thumbnail.html +0 -7
- data/_sass/external/_syntax.scss +0 -188
data/_sass/base/_variables.scss
CHANGED
@@ -10,7 +10,10 @@ $padding-large: 9%;
|
|
10
10
|
$padding-medium: 6%;
|
11
11
|
$padding-small: 4%;
|
12
12
|
$padding-x-small: 3%;
|
13
|
-
|
13
|
+
|
14
|
+
// Sepcific Padding
|
15
|
+
$title-padding: 1%;
|
16
|
+
$feature-image-padding: 10%;
|
14
17
|
|
15
18
|
// Mobile display
|
16
19
|
$xl-break: 2000px;
|
@@ -34,7 +37,7 @@ $selection-color: #D4D4D4; // visible when highlighting text
|
|
34
37
|
$blockquote-color: #EEF7FA; // $background-color;
|
35
38
|
|
36
39
|
// Header
|
37
|
-
$header-background-color: $theme-color;
|
40
|
+
$header-background-color: $theme-color; // Only used when no header image
|
38
41
|
$header-text-color: #fff;
|
39
42
|
$header-link-color: #383838;
|
40
43
|
$navbar-separator-opacity: 0;
|
@@ -51,29 +54,44 @@ $search-color: #999;
|
|
51
54
|
|
52
55
|
/* Syntax highlighting */
|
53
56
|
// Syntax typography
|
54
|
-
$monospace:
|
55
|
-
$font-size-code: 0.
|
57
|
+
$monospace: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif !default;
|
58
|
+
$font-size-code: 0.85em !default;
|
59
|
+
$font-height-code: 1.3em !default;
|
56
60
|
$border-radius: 4px !default;
|
57
61
|
|
58
62
|
// base16 Material Theme
|
59
|
-
$base00: #
|
60
|
-
$base01: #2E3C43 !default; // Lighter Background (Used for status bars)
|
61
|
-
$base02: #314549 !default; // Selection Background
|
62
|
-
$base03: #546E7A !default; //
|
63
|
-
$base04: #B2CCD6 !default; //
|
64
|
-
$base05: #EEFFFF !default; //
|
65
|
-
$base06: #EEFFFF !default; // Light
|
66
|
-
$base07: #FFFFFF !default; //
|
67
|
-
$base08: #F07178 !default; //
|
68
|
-
$base09: #F78C6C !default; //
|
69
|
-
$base0a: #FFCB6B !default; //
|
70
|
-
$base0b: #98C379 !default; //
|
63
|
+
$base00: #302f2d !default; // Default Background
|
64
|
+
$base01: #2E3C43 !default; // Lighter Background (Used for status bars) - NOT USED
|
65
|
+
$base02: #314549 !default; // Selection Background - NOT USED
|
66
|
+
$base03: #546E7A !default; // Dark Foreground (Used for status bars) - NOT USED
|
67
|
+
$base04: #B2CCD6 !default; // Comments, Invisible, Line Highlighting
|
68
|
+
$base05: #EEFFFF !default; // Light Foreground (Not often used)
|
69
|
+
$base06: #EEFFFF !default; // Light Background (Not often used)
|
70
|
+
$base07: #FFFFFF !default; // Default Foreground, Default text color
|
71
|
+
$base08: #F07178 !default; // Parenthesis, Caret, Delimiters, Operators
|
72
|
+
$base09: #F78C6C !default; // Classes, Markup Bold, Search Text Background
|
73
|
+
$base0a: #FFCB6B !default; // Strings, Inherited Class, Markup Code, Diff Inserted
|
74
|
+
$base0b: #98C379 !default; // Functions, Methods, Attribute IDs, Headings
|
71
75
|
$base0c: #89DDFF !default; // Support, Regular Expressions, Escape Characters, Markup Quotes
|
72
|
-
$base0d: #82AAFF !default; //
|
73
|
-
$base0e: #C792EA !default; //
|
76
|
+
$base0d: #82AAFF !default; // Keywords, Storage, Selector, Markup Italic, Diff Changed
|
77
|
+
$base0e: #C792EA !default; // Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
74
78
|
$base0f: #FF5370 !default; // Deprecated, Opening/Closing Embedded Language Tags e.g.
|
75
79
|
|
76
|
-
|
77
|
-
|
78
|
-
|
80
|
+
// base16 Monokai
|
81
|
+
//$base00: #272822 !default; // Default Background
|
82
|
+
//$base01: #383830 !default; // Lighter Background (Used for status bars)
|
83
|
+
//$base02: #49483e !default; // Selection Background
|
84
|
+
//$base03: #75715e !default; // Dark Foreground (Used for status bars)
|
85
|
+
//$base04: #a59f85 !default; // Comments, Invisible, Line Highlighting
|
86
|
+
//$base05: #f8f8f2 !default; // Light Foreground (Not often used)
|
87
|
+
//$base06: #f5f4f1 !default; // Light Background (Not often used)
|
88
|
+
//$base07: #f9f8f5 !default; // Default text color
|
89
|
+
//$base08: #f92672 !default; // Parenthesis, Caret, Delimiters, Operators
|
90
|
+
//$base09: #fd971f !default; // Classes, Markup Bold, Search Text Background
|
91
|
+
//$base0a: #e6db74 !default; // Strings, Inherited Class, Markup Code, Diff Inserted
|
92
|
+
//$base0b: #a6e22e !default; // Functions, Methods, Attribute IDs, Headings
|
93
|
+
//$base0c: #a1efe4 !default; // Support, Regular Expressions, Escape Characters, Markup Quotes
|
94
|
+
//$base0d: #66d9ef !default; // Keywords, Storage, Selector, Markup Italic, Diff Changed
|
95
|
+
//$base0e: #ae81ff !default; // Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
96
|
+
//$base0f: #cc6633 !default; // Deprecated, Opening/Closing Embedded Language Tags e.g.
|
79
97
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#cookie-notice {
|
2
|
+
padding: 0.5rem 1rem;
|
3
|
+
display: none;
|
4
|
+
text-align: center;
|
5
|
+
position: fixed;
|
6
|
+
bottom: 0;
|
7
|
+
width: 100%;
|
8
|
+
background: rgba(2, 2, 2, 0.85);
|
9
|
+
color: lightgray;
|
10
|
+
z-index: 1000;
|
11
|
+
}
|
12
|
+
|
13
|
+
#cookie-notice a {
|
14
|
+
display: inline-block;
|
15
|
+
cursor: pointer;
|
16
|
+
margin-left: 0.6rem;
|
17
|
+
}
|
data/_sass/includes/_footer.scss
CHANGED
data/_sass/includes/_navbar.scss
CHANGED
@@ -81,6 +81,7 @@
|
|
81
81
|
&#pull {
|
82
82
|
i {
|
83
83
|
margin-top: 13px;
|
84
|
+
margin-right: 10px;
|
84
85
|
float: right;
|
85
86
|
}
|
86
87
|
|
@@ -121,7 +122,8 @@
|
|
121
122
|
overflow: hidden;
|
122
123
|
|
123
124
|
/* fade out, then shrink */
|
124
|
-
transition: opacity .
|
125
|
+
transition: opacity .25s 0s, font-size .25s 0s;
|
126
|
+
transition-delay: 0s;
|
125
127
|
|
126
128
|
&.hide {
|
127
129
|
font-size: 0;
|
@@ -129,24 +131,25 @@
|
|
129
131
|
opacity: 0;
|
130
132
|
padding: 0;
|
131
133
|
}
|
134
|
+
}
|
132
135
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
136
|
+
li {
|
137
|
+
width: 100%;
|
138
|
+
text-align: center;
|
139
|
+
font-size: 1em;
|
140
|
+
position: relative;
|
141
|
+
background-color: darken($background-color, 2%);
|
139
142
|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
+
&:nth-of-type(4n) {
|
144
|
+
background-color: $background-color;
|
145
|
+
}
|
143
146
|
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
}
|
147
|
+
a {
|
148
|
+
width: 100%;
|
149
|
+
margin: 0;
|
150
|
+
display: block;
|
149
151
|
}
|
152
|
+
|
150
153
|
}
|
151
154
|
}
|
152
155
|
}
|
data/_sass/layouts/_page.scss
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
+
.title-padder {
|
2
|
+
padding: $title-padding;
|
3
|
+
}
|
4
|
+
|
1
5
|
h1.title {
|
2
6
|
@extend .header-txt-shadow;
|
3
|
-
padding:
|
7
|
+
padding: 0.5em 0;
|
4
8
|
}
|
5
9
|
|
6
10
|
.subtitle {
|
@@ -10,3 +14,27 @@ h1.title {
|
|
10
14
|
}
|
11
15
|
|
12
16
|
//Shared css in _post.scss
|
17
|
+
|
18
|
+
|
19
|
+
/* --- Aligner --- */
|
20
|
+
/* within page/posts */
|
21
|
+
|
22
|
+
.row {
|
23
|
+
display: flex;
|
24
|
+
flex-wrap: wrap;
|
25
|
+
padding: 0.9% 0 1.5% 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
.column {
|
29
|
+
flex: 50%;
|
30
|
+
|
31
|
+
img {
|
32
|
+
width: 100%;
|
33
|
+
min-width: 250px;
|
34
|
+
}
|
35
|
+
|
36
|
+
.single {
|
37
|
+
width: 50%;
|
38
|
+
display: block;
|
39
|
+
}
|
40
|
+
}
|
data/_sass/layouts/_posts.scss
CHANGED
@@ -72,7 +72,7 @@ header {
|
|
72
72
|
|
73
73
|
img {
|
74
74
|
border-radius: 1em;
|
75
|
-
padding:
|
75
|
+
padding: 0;
|
76
76
|
width: 1.5em;
|
77
77
|
height: 100%;
|
78
78
|
margin-right: 0.5em;
|
@@ -106,6 +106,10 @@ header {
|
|
106
106
|
@extend %padding-post;
|
107
107
|
padding-top: 0;
|
108
108
|
}
|
109
|
+
|
110
|
+
.feature-image-padding {
|
111
|
+
padding: $feature-image-padding;
|
112
|
+
}
|
109
113
|
}
|
110
114
|
|
111
115
|
/*-- feature-image Responsive scrolling --*/
|
data/_sass/type-on-strap.scss
CHANGED
@@ -1,21 +1,15 @@
|
|
1
1
|
// Variables
|
2
2
|
@import 'base/variables';
|
3
|
+
// Base
|
4
|
+
@import 'base/global';
|
5
|
+
@import 'base/utility';
|
6
|
+
@import 'base/highlight';
|
3
7
|
// External
|
4
8
|
@import 'external/reset';
|
5
|
-
@import 'external/syntax';
|
6
9
|
@import 'external/font-awesome';
|
7
10
|
@import 'external/pacifico';
|
8
11
|
@import 'external/katex';
|
9
12
|
@import 'external/source-sans-pro';
|
10
|
-
// Base
|
11
|
-
@import 'base/global';
|
12
|
-
@import 'base/utility';
|
13
|
-
// Posts
|
14
|
-
@import 'layouts/posts';
|
15
|
-
@import 'layouts/blog';
|
16
|
-
@import 'layouts/page';
|
17
|
-
@import 'layouts/tags';
|
18
|
-
@import 'layouts/search';
|
19
13
|
// Includes
|
20
14
|
@import 'includes/footer';
|
21
15
|
@import 'includes/post_nav';
|
@@ -24,3 +18,10 @@
|
|
24
18
|
@import 'includes/grid';
|
25
19
|
@import 'includes/share_buttons';
|
26
20
|
@import 'includes/blog_nav.scss';
|
21
|
+
@import 'includes/cookie_consent.scss';
|
22
|
+
// Posts
|
23
|
+
@import 'layouts/posts';
|
24
|
+
@import 'layouts/blog';
|
25
|
+
@import 'layouts/page';
|
26
|
+
@import 'layouts/tags';
|
27
|
+
@import 'layouts/search';
|
data/assets/data/search.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[
|
4
4
|
{% for post in site.posts %}
|
5
5
|
{
|
6
|
-
"title" : "{{ post.title | escape }}",
|
6
|
+
"title" : "{{ post.title | strip_newlines | escape }}",
|
7
7
|
"category" : "{{ post.category }}",
|
8
8
|
"tags" : "{{ post.tags | join: ', ' | prepend: " " }}",
|
9
9
|
"url" : "{{ post.url | relative_url }}",
|
@@ -16,7 +16,7 @@
|
|
16
16
|
{% for page in site.portfolio %}
|
17
17
|
{
|
18
18
|
{% if page.title != nil %}
|
19
|
-
"title" : "{{ page.title | escape }}",
|
19
|
+
"title" : "{{ page.title | strip_newlines | escape }}",
|
20
20
|
"category" : "{{ page.category }}",
|
21
21
|
"tags" : "{{ page.tags | join: ', ' | prepend: " " }}",
|
22
22
|
"url" : "{{ page.url | relative_url }}",
|
data/assets/js/main.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var elements=document.getElementsByTagName("script");Array.prototype.forEach.call(elements,function(e){if(-1!==e.type.indexOf("math/tex")){var t=e.innerText||e.textContent;t=t.replace(/%.*/g,"");var n=document.createElement("span");-1!==e.type.indexOf("mode=display")?(n.className+="math-display",t="\\displaystyle {"+t+"}"):n.className+="math-inline",katex.render(t,n,{displayMode:!1}),e.parentNode.insertBefore(n,e)}});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){var t=document.getElementById("pull"),n=document.querySelector("nav ul");
|
1
|
+
function createCookie(e,t,n){var o="";if(n){var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3),o="; expires="+a.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 a=n[o];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t))return a.substring(t.length,a.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),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();var elements=document.getElementsByTagName("script");Array.prototype.forEach.call(elements,function(e){if(-1!==e.type.indexOf("math/tex")){var t=e.innerText||e.textContent;t=t.replace(/%.*/g,"");var n=document.createElement("span");-1!==e.type.indexOf("mode=display")?(n.className+="math-display",t="\\displaystyle {"+t+"}"):n.className+="math-inline",katex.render(t,n,{displayMode:!1}),e.parentNode.insertBefore(n,e)}});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){var 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;document.getElementById("main").style.backgroundPosition="100% "+e+"px, 0%, center top"})});
|
@@ -0,0 +1,57 @@
|
|
1
|
+
function createCookie(name, value, days) {
|
2
|
+
var expires = "";
|
3
|
+
if (days) {
|
4
|
+
var date = new Date();
|
5
|
+
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
6
|
+
expires = "; expires=" + date.toUTCString();
|
7
|
+
}
|
8
|
+
document.cookie = name + "=" + value + expires + "; path=/";
|
9
|
+
}
|
10
|
+
|
11
|
+
function readCookie(name) {
|
12
|
+
var nameEQ = name + "=";
|
13
|
+
var ca = document.cookie.split(';');
|
14
|
+
for (var i = 0; i < ca.length; i++) {
|
15
|
+
var c = ca[i];
|
16
|
+
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
17
|
+
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
18
|
+
}
|
19
|
+
return null;
|
20
|
+
}
|
21
|
+
|
22
|
+
function addCookieConsentListener() {
|
23
|
+
document.getElementById('cookie-notice-accept').addEventListener("click", function () {
|
24
|
+
createCookie(cookieName, 'true', 31);
|
25
|
+
document.getElementById('cookie-notice').style.display = 'none';
|
26
|
+
location.reload();
|
27
|
+
});
|
28
|
+
}
|
29
|
+
|
30
|
+
function googleAnalytics() {
|
31
|
+
if (analyticsName.toLowerCase() !== '') {
|
32
|
+
// Google tag manager
|
33
|
+
window.dataLayer = window.dataLayer || [];
|
34
|
+
function gtag() { dataLayer.push(arguments); }
|
35
|
+
gtag('js', new Date());
|
36
|
+
gtag('config', analyticsName);
|
37
|
+
|
38
|
+
// Google analytics
|
39
|
+
window.ga = window.ga || function () { (ga.q = ga.q || []).push(arguments) };
|
40
|
+
ga.l = +new Date;
|
41
|
+
ga('create', analyticsName, 'auto');
|
42
|
+
ga('send', 'pageview');
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
if (isCookieConsent.toLowerCase() === 'true') {
|
47
|
+
addCookieConsentListener();
|
48
|
+
if (readCookie(cookieName) === 'true') {
|
49
|
+
googleAnalytics();
|
50
|
+
} else {
|
51
|
+
document.getElementById('cookie-notice').style.display = 'block';
|
52
|
+
}
|
53
|
+
} else {
|
54
|
+
googleAnalytics();
|
55
|
+
}
|
56
|
+
|
57
|
+
|
@@ -6,18 +6,18 @@ document.addEventListener("DOMContentLoaded", function (event) {
|
|
6
6
|
var pull = document.getElementById('pull');
|
7
7
|
var menu = document.querySelector('nav ul');
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
|
10
|
+
['click', 'touch'].forEach(function (e) {
|
11
|
+
pull.addEventListener(e, function () {
|
12
|
+
menu.classList.toggle('hide')
|
13
|
+
}, false);
|
11
14
|
});
|
12
15
|
|
13
16
|
/*
|
14
17
|
* Make the header images move on scroll
|
15
18
|
*/
|
16
19
|
window.addEventListener('scroll', function () {
|
17
|
-
var
|
18
|
-
|
19
|
-
var mainStyle = main.style;
|
20
|
-
|
21
|
-
mainStyle.backgroundPosition = '100% ' + parseInt(-x / 3) + 'px' + ', 0%, center top';
|
20
|
+
var offset = -(window.scrollY || window.pageYOffset || document.body.scrollTop) / 3;
|
21
|
+
document.getElementById("main").style.backgroundPosition = '100% ' + offset + 'px' + ', 0%, center top';
|
22
22
|
});
|
23
|
-
});
|
23
|
+
});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Simple-Jekyll-Search v1.
|
3
|
-
* Copyright 2015-
|
2
|
+
* Simple-Jekyll-Search v1.7.8 (https://github.com/christian-fei/Simple-Jekyll-Search)
|
3
|
+
* Copyright 2015-2020, Christian Fei
|
4
4
|
* Licensed under the MIT License.
|
5
5
|
*/
|
6
|
-
!function(){"use strict";function
|
6
|
+
!function(){"use strict";var t={compile:function(t){return e.template.replace(e.pattern,function(n,r){var i=e.middleware(r,t[r],e.template);return void 0!==i?i:t[r]||n})},setOptions:function(t){e.pattern=t.pattern||e.pattern,e.template=t.template||e.template,"function"==typeof t.middleware&&(e.middleware=t.middleware)}},e={};e.pattern=/\{(.*?)\}/g,e.template="",e.middleware=function(){};var n=function(t,e){var n=e.length,r=t.length;if(r>n)return!1;if(r===n)return t===e;t:for(var i=0,o=0;i<r;i++){for(var u=t.charCodeAt(i);o<n;)if(e.charCodeAt(o++)===u)continue t;return!1}return!0},r=new function(){this.matches=function(t,e){return n(e.toLowerCase(),t.toLowerCase())}};var i=new function(){this.matches=function(t,e){return!!t&&(t=t.trim().toLowerCase(),(e=e.trim().toLowerCase()).split(" ").filter(function(e){return t.indexOf(e)>=0}).length===e.split(" ").length)}};var o={put:function(t){if(l(t))return f(t);if(e=t,Boolean(e)&&"[object Array]"===Object.prototype.toString.call(e))return function(t){var e=[];s();for(var n=0,r=t.length;n<r;n++)l(t[n])&&e.push(f(t[n]));return e}(t);var e;return},clear:s,search:function(t){if(!t)return[];return function(t,e,n,r){for(var i=[],o=0;o<t.length&&i.length<r.limit;o++){var u=p(t[o],e,n,r);u&&i.push(u)}return i}(a,t,c.searchStrategy,c).sort(c.sort)},setOptions:function(t){(c=t||{}).fuzzy=t.fuzzy||!1,c.limit=t.limit||10,c.searchStrategy=t.fuzzy?r:i,c.sort=t.sort||u}};function u(){return 0}var a=[],c={};function s(){return a.length=0,a}function l(t){return Boolean(t)&&"[object Object]"===Object.prototype.toString.call(t)}function f(t){return a.push(t),a}function p(t,e,n,r){for(var i in t)if(!d(t[i],r.exclude)&&n.matches(t[i],e))return t}function d(t,e){for(var n=!1,r=0,i=(e=e||[]).length;r<i;r++){var o=e[r];!n&&new RegExp(t).test(o)&&(n=!0)}return n}c.fuzzy=!1,c.limit=10,c.searchStrategy=c.fuzzy?r:i,c.sort=u;var h={load:function(t,e){var n=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");n.open("GET",t,!0),n.onreadystatechange=function(t,e){return function(){if(4===t.readyState&&200===t.status)try{e(null,JSON.parse(t.responseText))}catch(t){e(t,null)}}}(n,e),n.send()}};var v={merge:function(t,e){var n={};for(var r in t)n[r]=t[r],void 0!==e[r]&&(n[r]=e[r]);return n},isJSON:function(t){try{return!!(t instanceof Object&&JSON.parse(JSON.stringify(t)))}catch(t){return!1}}};!function(e){var n={searchInput:null,resultsContainer:null,json:[],success:Function.prototype,searchResultTemplate:'<li><a href="{url}" title="{desc}">{title}</a></li>',templateMiddleware:Function.prototype,sortMiddleware:function(){return 0},noResultsText:"No results found",limit:10,fuzzy:!1,exclude:[]},r=["searchInput","resultsContainer","json"],i=function t(e){if(!function(t){return!!t&&(void 0!==t.required&&t.required instanceof Array)}(e))throw new Error("-- OptionsValidator: required options missing");if(!(this instanceof t))return new t(e);var n=e.required;this.getRequiredOptions=function(){return n},this.validate=function(t){var e=[];return n.forEach(function(n){void 0===t[n]&&e.push(n)}),e}}({required:r}),u=function(e){var u;return i.validate(e).length>0&&f("You must specify the following required options: "+r),n=v.merge(n,e),t.setOptions({template:n.searchResultTemplate,middleware:n.templateMiddleware}),o.setOptions({fuzzy:n.fuzzy,limit:n.limit,sort:n.sortMiddleware}),v.isJSON(n.json)?a(n.json):(u=n.json,h.load(u,function(t,e){t&&f("failed to get JSON ("+u+")"),a(e)})),{search:l}};function a(t){o.put(t),n.searchInput.addEventListener("keyup",function(t){var e;e=t.which,-1===[13,16,20,37,38,39,40,91].indexOf(e)&&(c(),l(t.target.value))})}function c(){n.resultsContainer.innerHTML=""}function s(t){n.resultsContainer.innerHTML+=t}function l(e){(function(t){return t&&t.length>0})(e)&&(c(),function(e,r){var i=e.length;if(0===i)return s(n.noResultsText);for(var o=0;o<i;o++)e[o].query=r,s(t.compile(e[o]))}(o.search(e),e))}function f(t){throw new Error("SimpleJekyllSearch --- "+t)}e.SimpleJekyllSearch=function(t){var e=u(t);return t.success.call(e),e}}(window)}();
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: type-on-strap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylhare
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -17,7 +17,7 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '3.
|
20
|
+
version: '3.8'
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: '5.0'
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: '3.
|
30
|
+
version: '3.8'
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '5.0'
|
@@ -87,8 +87,10 @@ files:
|
|
87
87
|
- LICENSE
|
88
88
|
- README.md
|
89
89
|
- _data/language.yml
|
90
|
+
- _includes/aligner.html
|
90
91
|
- _includes/blog.html
|
91
92
|
- _includes/blog_nav.html
|
93
|
+
- _includes/citation.html
|
92
94
|
- _includes/disqus.html
|
93
95
|
- _includes/footer.html
|
94
96
|
- _includes/gallery.html
|
@@ -99,7 +101,6 @@ files:
|
|
99
101
|
- _includes/post_info.html
|
100
102
|
- _includes/post_nav.html
|
101
103
|
- _includes/share_buttons.html
|
102
|
-
- _includes/share_thumbnail.html
|
103
104
|
- _includes/tags_list.html
|
104
105
|
- _layouts/custom.html
|
105
106
|
- _layouts/default.html
|
@@ -109,6 +110,7 @@ files:
|
|
109
110
|
- _layouts/search.html
|
110
111
|
- _layouts/tags.html
|
111
112
|
- _sass/base/_global.scss
|
113
|
+
- _sass/base/_highlight.scss
|
112
114
|
- _sass/base/_utility.scss
|
113
115
|
- _sass/base/_variables.scss
|
114
116
|
- _sass/external/_font-awesome.scss
|
@@ -116,7 +118,6 @@ files:
|
|
116
118
|
- _sass/external/_pacifico.scss
|
117
119
|
- _sass/external/_reset.scss
|
118
120
|
- _sass/external/_source-sans-pro.scss
|
119
|
-
- _sass/external/_syntax.scss
|
120
121
|
- _sass/external/font-awesome/_animated.scss
|
121
122
|
- _sass/external/font-awesome/_bordered-pulled.scss
|
122
123
|
- _sass/external/font-awesome/_core.scss
|
@@ -132,6 +133,7 @@ files:
|
|
132
133
|
- _sass/external/font-awesome/_variables.scss
|
133
134
|
- _sass/external/font-awesome/font-awesome.scss
|
134
135
|
- _sass/includes/_blog_nav.scss
|
136
|
+
- _sass/includes/_cookie_consent.scss
|
135
137
|
- _sass/includes/_footer.scss
|
136
138
|
- _sass/includes/_grid.scss
|
137
139
|
- _sass/includes/_navbar.scss
|
@@ -247,6 +249,7 @@ files:
|
|
247
249
|
- assets/fonts/source-sans-pro/source-sans-pro-italic.woff2
|
248
250
|
- assets/fonts/source-sans-pro/source-sans-pro-regular.woff2
|
249
251
|
- assets/js/main.min.js
|
252
|
+
- assets/js/partials/cookie_consent_init.js
|
250
253
|
- assets/js/partials/katex_init.js
|
251
254
|
- assets/js/partials/masonry_init.js
|
252
255
|
- assets/js/partials/navbar.js
|
@@ -267,7 +270,7 @@ post_install_message: |
|
|
267
270
|
|
268
271
|
* Use _data/ for social and language customization
|
269
272
|
|
270
|
-
*
|
273
|
+
* Visit https://github.com/sylhare/Type-on-Strap for more info.
|
271
274
|
|
272
275
|
-------------------------------------------------------------------------------------
|
273
276
|
rdoc_options:
|
@@ -285,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
285
288
|
- !ruby/object:Gem::Version
|
286
289
|
version: '0'
|
287
290
|
requirements: []
|
288
|
-
rubygems_version: 3.0.
|
291
|
+
rubygems_version: 3.0.8
|
289
292
|
signing_key:
|
290
293
|
specification_version: 4
|
291
294
|
summary: A simple and responsive jekyll theme template
|