type-on-strap 2.1.0 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +101 -65
- data/_data/language.yml +3 -0
- data/_includes/aligner.html +6 -2
- data/_includes/citation.html +2 -0
- data/_includes/disqus.html +12 -10
- data/_includes/head.html +31 -26
- 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 +4 -11
- data/_sass/base/_highlight.scss +290 -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 +27 -28
- data/_sass/layouts/_blog.scss +1 -0
- data/_sass/layouts/_page.scss +17 -3
- data/_sass/layouts/_posts.scss +5 -1
- data/_sass/type-on-strap.scss +10 -9
- 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 +3 -6
- data/assets/js/vendor/auto-render.min.js +1 -0
- data/assets/js/vendor/katex.min.js +1 -1
- data/assets/js/vendor/simple-jekyll-search.min.js +3 -3
- metadata +12 -18
- data/_includes/share_thumbnail.html +0 -7
- data/_sass/external/_syntax.scss +0 -188
- data/assets/js/partials/katex_init.js +0 -28
@@ -1,7 +0,0 @@
|
|
1
|
-
{% assign page = include.page %}
|
2
|
-
|
3
|
-
<meta property="og:url" content="{{ page.url }}" />
|
4
|
-
<meta property="og:type" content="article" />
|
5
|
-
<meta property="og:title" content="{{ page.title | strip_html | truncate: '250' | escape }}" />
|
6
|
-
<meta property="og:description" content="{{ page.excerpt | strip_html | truncate: '250' | escape }}" />
|
7
|
-
<meta property="og:image" content="{{ page.feature-img | default: site.header_feature_image }}" />
|
data/_sass/external/_syntax.scss
DELETED
@@ -1,188 +0,0 @@
|
|
1
|
-
// Inspired by: https://github.com/mmistakes/minimal-mistakes/blob/master/_sass/minimal-mistakes/_syntax.scss
|
2
|
-
|
3
|
-
// ==========================================================================
|
4
|
-
// Syntax highlighting
|
5
|
-
// ==========================================================================
|
6
|
-
|
7
|
-
div.highlighter-rouge,
|
8
|
-
figure.highlight {
|
9
|
-
position: relative;
|
10
|
-
margin-bottom: 1em;
|
11
|
-
background: $base00;
|
12
|
-
color: $base05;
|
13
|
-
font-family: $monospace;
|
14
|
-
font-size: $font-size-code;
|
15
|
-
line-height: 1.8;
|
16
|
-
border-radius: $border-radius;
|
17
|
-
|
18
|
-
> pre,
|
19
|
-
pre.highlight {
|
20
|
-
margin: 0;
|
21
|
-
padding: 1em
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
code.highlighter-rouge {
|
26
|
-
padding: 0.2em 0.4em;
|
27
|
-
font-size: $font-size-code;
|
28
|
-
background-color: transparentize($base00, 0.85);
|
29
|
-
color: rgb(36, 41, 46);
|
30
|
-
border-radius: 2px;
|
31
|
-
font-family: $monospace;
|
32
|
-
}
|
33
|
-
|
34
|
-
.highlight table {
|
35
|
-
margin-bottom: 0;
|
36
|
-
font-size: 1em;
|
37
|
-
border: 0;
|
38
|
-
|
39
|
-
td {
|
40
|
-
padding: 0;
|
41
|
-
width: calc(100% - 1em);
|
42
|
-
border: 0;
|
43
|
-
/* line numbers*/
|
44
|
-
&.gutter,
|
45
|
-
&.rouge-gutter {
|
46
|
-
padding-right: 1em;
|
47
|
-
width: 2em;
|
48
|
-
color: $base04;
|
49
|
-
border-right: 1px solid $base04;
|
50
|
-
text-align: right
|
51
|
-
}
|
52
|
-
|
53
|
-
/* code */
|
54
|
-
&.code,
|
55
|
-
&.rouge-code {
|
56
|
-
padding-left: 1em
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
pre {
|
61
|
-
margin: 0
|
62
|
-
}
|
63
|
-
}
|
64
|
-
|
65
|
-
.highlight pre{ width:100%}
|
66
|
-
.highlight .hll{ background-color:$base06}
|
67
|
-
|
68
|
-
.highlight{
|
69
|
-
.c{ /* Comment */ color:$base04}
|
70
|
-
.err{ /* Error */ color:$base08}
|
71
|
-
.k{ /* Keyword */ color:$base0e}
|
72
|
-
.l{ /* Literal */ color:$base09}
|
73
|
-
.n{ /* Name */ color:$base05}
|
74
|
-
.o{ /* Operator */ color:$base0c}
|
75
|
-
.p{ /* Punctuation */ color:$base05}
|
76
|
-
.cm{ /* Comment.Multiline */ color:$base04}
|
77
|
-
.cp{ /* Comment.Preproc */ color:$base04}
|
78
|
-
.c1{ /* Comment.Single */ color:$base04}
|
79
|
-
.cs{ /* Comment.Special */ color:$base04}
|
80
|
-
.gd{ /* Generic.Deleted */ color:$base08}
|
81
|
-
.ge{ /* Generic.Emph */ font-style:italic}
|
82
|
-
.gh{ /* Generic.Heading */ color:$base05; font-weight:bold}
|
83
|
-
.gi{ /* Generic.Inserted */ color:$base0b}
|
84
|
-
.gp{ /* Generic.Prompt */ color:$base04; font-weight:bold}
|
85
|
-
.gs{ /* Generic.Strong */ font-weight:bold}
|
86
|
-
.gu{ /* Generic.Subheading */ color:$base0c; font-weight:bold}
|
87
|
-
.kc{ /* Keyword.Constant */ color:$base0e}
|
88
|
-
.kd{ /* Keyword.Declaration */ color:$base0e}
|
89
|
-
.kn{ /* Keyword.Namespace */ color:$base0c}
|
90
|
-
.kp{ /* Keyword.Pseudo */ color:$base0e}
|
91
|
-
.kr{ /* Keyword.Reserved */ color:$base0e}
|
92
|
-
.kt{ /* Keyword.Type */ color:$base0a}
|
93
|
-
.ld{ /* Literal.Date */ color:$base0b}
|
94
|
-
.m{ /* Literal.Number */ color:$base09}
|
95
|
-
.s{ /* Literal.String */ color:$base0b}
|
96
|
-
.na{ /* Name.Attribute */ color:$base0d}
|
97
|
-
.nb{ /* Name.Builtin */ color:$base05}
|
98
|
-
.nc{ /* Name.Class */ color:$base0a}
|
99
|
-
.no{ /* Name.Constant */ color:$base08}
|
100
|
-
.nd{ /* Name.Decorator */ color:$base0c}
|
101
|
-
.ni{ /* Name.Entity */ color:$base05}
|
102
|
-
.ne{ /* Name.Exception */ color:$base08}
|
103
|
-
.nf{ /* Name.Function */ color:$base0d}
|
104
|
-
.nl{ /* Name.Label */ color:$base05}
|
105
|
-
.nn{ /* Name.Namespace */ color:$base0a}
|
106
|
-
.nx{ /* Name.Other */ color:$base0d}
|
107
|
-
.py{ /* Name.Property */ color:$base05}
|
108
|
-
.nt{ /* Name.Tag */ color:$base0c}
|
109
|
-
.nv{ /* Name.Variable */ color:$base08}
|
110
|
-
.ow{ /* Operator.Word */ color:$base0c}
|
111
|
-
.w{ /* Text.Whitespace */ color:$base05}
|
112
|
-
.mf{ /* Literal.Number.Float */ color:$base09}
|
113
|
-
.mh{ /* Literal.Number.Hex */ color:$base09}
|
114
|
-
.mi{ /* Literal.Number.Integer */ color:$base09}
|
115
|
-
.mo{ /* Literal.Number.Oct */ color:$base09}
|
116
|
-
.sb{ /* Literal.String.Backtick */ color:$base0b}
|
117
|
-
.sc{ /* Literal.String.Char */ color:$base05}
|
118
|
-
.sd{ /* Literal.String.Doc */ color:$base04}
|
119
|
-
.s2{ /* Literal.String.Double */ color:$base0b}
|
120
|
-
.se{ /* Literal.String.Escape */ color:$base09}
|
121
|
-
.sh{ /* Literal.String.Heredoc */ color:$base0b}
|
122
|
-
.si{ /* Literal.String.Interpol */ color:$base09}
|
123
|
-
.sx{ /* Literal.String.Other */ color:$base0b}
|
124
|
-
.sr{ /* Literal.String.Regex */ color:$base0b}
|
125
|
-
.s1{ /* Literal.String.Single */ color:$base0b}
|
126
|
-
.ss{ /* Literal.String.Symbol */ color:$base0b}
|
127
|
-
.bp{ /* Name.Builtin.Pseudo */ color:$base05}
|
128
|
-
.vc{ /* Name.Variable.Class */ color:$base08}
|
129
|
-
.vg{ /* Name.Variable.Global */ color:$base08}
|
130
|
-
.vi{ /* Name.Variable.Instance */ color:$base08}
|
131
|
-
.il{ /* Literal.Number.Integer.Long */ color:$base09}
|
132
|
-
}
|
133
|
-
|
134
|
-
// Fix Github syntax display
|
135
|
-
.gist .blob-num {
|
136
|
-
width: 3.5% !important;
|
137
|
-
}
|
138
|
-
|
139
|
-
// Fix nbconvert dataframe
|
140
|
-
.dataframe tbody {
|
141
|
-
font-size: 0.8em;
|
142
|
-
border-color: white;
|
143
|
-
|
144
|
-
tr {
|
145
|
-
:nth-child(even) {
|
146
|
-
background-color: #f8f8f8;
|
147
|
-
}
|
148
|
-
|
149
|
-
th {
|
150
|
-
border-top: 0;
|
151
|
-
border-left: 0;
|
152
|
-
border-bottom: 0;
|
153
|
-
}
|
154
|
-
|
155
|
-
|
156
|
-
td {
|
157
|
-
padding: 0;
|
158
|
-
border: 0;
|
159
|
-
text-align: center;
|
160
|
-
}
|
161
|
-
}
|
162
|
-
|
163
|
-
|
164
|
-
}
|
165
|
-
|
166
|
-
.dataframe thead tr {
|
167
|
-
:nth-child(n+2) {
|
168
|
-
color: black;
|
169
|
-
//width: 100px;
|
170
|
-
|
171
|
-
font-size: 0.75em;
|
172
|
-
text-align: center !important;
|
173
|
-
border-top: 0;
|
174
|
-
border-left: 0;
|
175
|
-
border-right: 0;
|
176
|
-
}
|
177
|
-
|
178
|
-
:first-child {
|
179
|
-
border-top: 0;
|
180
|
-
border-left: 0;
|
181
|
-
}
|
182
|
-
|
183
|
-
}
|
184
|
-
|
185
|
-
table.dataframe {
|
186
|
-
border: 0 solid $border-color;
|
187
|
-
border-collapse: collapse;
|
188
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
var elements = document.getElementsByTagName('script');
|
2
|
-
|
3
|
-
Array.prototype.forEach.call(elements, function (element) {
|
4
|
-
if (element.type.indexOf('math/tex') !== -1) {
|
5
|
-
// Extract math markdown
|
6
|
-
var textToRender = element.innerText || element.textContent;
|
7
|
-
|
8
|
-
// Kramdown and KaTeX workaround
|
9
|
-
// https://github.com/rohanchandra/type-theme/issues/47
|
10
|
-
textToRender = textToRender.replace(/%.*/g, '');
|
11
|
-
|
12
|
-
// Create span for KaTeX
|
13
|
-
var katexElement = document.createElement('span');
|
14
|
-
|
15
|
-
// Support inline and display math
|
16
|
-
if (element.type.indexOf('mode=display') !== -1) {
|
17
|
-
katexElement.className += "math-display";
|
18
|
-
textToRender = '\\displaystyle {' + textToRender + '}';
|
19
|
-
} else {
|
20
|
-
katexElement.className += "math-inline";
|
21
|
-
}
|
22
|
-
|
23
|
-
// Set displayMode to true to center equation
|
24
|
-
// https://github.com/Khan/KaTeX/issues/626
|
25
|
-
katex.render(textToRender, katexElement, {displayMode: false});
|
26
|
-
element.parentNode.insertBefore(katexElement, element);
|
27
|
-
}
|
28
|
-
});
|