type-on-strap 0.2.0 → 0.3.0

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
  SHA1:
3
- metadata.gz: 41bb7e19b95e2b1b6c35065662abe45b1d41621b
4
- data.tar.gz: 3065373b68d030727457cdbdf177a3464be13613
3
+ metadata.gz: 41737444e953755c8857b1560289ef5d8149f7af
4
+ data.tar.gz: bb284350e1deca22cc043fa4464639721553e14a
5
5
  SHA512:
6
- metadata.gz: b3718698681f549e6192b63fa218c49156bf7d17d38e61a1d4f0799d23e25670e1b8f578205384cdd9a066a3590f205d6e967d8cad827f1b1a683ec170524818
7
- data.tar.gz: 3e78ece71d3bb19b9814b76486fa2b35f9c38f5c983f88d9a9e2c803f66fa413836ec8a56f07fbe197ea1c620786fa4b65020ababcb84c8d150558f07bcbe736
6
+ metadata.gz: 650fc66f48e58f0c0168debc0834582c3cd66a8449769d68f2fc949e6947deaccbfc8f4dddfa726521b199a818ca823063a90ff52b10ef0855246eca2cf4e5e0
7
+ data.tar.gz: fd562818a2e06b39c5685aa25dcbe9de1776eacf3b50f311d758720af444ebe3eca33634e619e14651316418a6d2cf666d230f9233913a1c5a8fa31a251208a1
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Type on Strap
1
+ # Type on Strap [![Build Status](https://travis-ci.org/Sylhare/Type-on-Strap.svg?branch=gh-pages)](https://travis-ci.org/Sylhare/Type-on-Strap)
2
2
 
3
3
  A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chandra [type-theme](https://github.com/rohanchandra/type-theme) with a few new features:
4
4
 
@@ -13,7 +13,7 @@ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chan
13
13
 
14
14
  > [Demo](https://sylhare.github.io/Type-on-Strap/)
15
15
 
16
- [![Default Type on Strap blog](https://raw.githubusercontent.com/Sylhare/Type-on-Strap/dev/screenshot.png)](https://sylhare.github.io/Type-on-Strap/)
16
+ [![Default Type on Strap blog](https://github.com/Sylhare/Type-on-Strap/blob/master/screenshot.png?raw=true)](https://sylhare.github.io/Type-on-Strap/)
17
17
 
18
18
  ## Table of Contents
19
19
 
@@ -22,7 +22,8 @@ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chan
22
22
  3. [Configure Type on Strap](https://github.com/Sylhare/Type-on-Strap#configure-type-on-strap)
23
23
  4. [Layout](https://github.com/Sylhare/Type-on-Strap#layout)
24
24
  5. [Feature pages](https://github.com/Sylhare/Type-on-Strap#feature-pages)
25
- 6. [License](https://github.com/Sylhare/Type-on-Strap#license)
25
+ 6. [Template as a Gem](https://github.com/Sylhare/Type-on-Strap#Template-as-a-Gem)
26
+ 7. [License](https://github.com/Sylhare/Type-on-Strap#license)
26
27
 
27
28
  ## Usage
28
29
 
@@ -256,19 +257,25 @@ This layout includes the head, navigation bar and footer around your content.
256
257
 
257
258
  ## Feature pages
258
259
 
259
- All feature pages are stored in the `page` folder, they will appear in the navigation bar unless you set `Hide: true` in the front matter.
260
+ All feature pages besides the "home" one are stored in the `page` folder, they will appear in the navigation bar unless you set `Hide: true` in the front matter.
260
261
 
261
262
  Here are the documentation for the other feature pages that can be added through `_config.yml`.
262
263
 
264
+ ### Home
265
+
266
+ This page is the used as the home page of the template (in the `index.html`). It displays the list of article in `_posts`.
267
+ You can use this layout in another page (adding a title to it will make it appear in the navigation bar).
268
+
263
269
  ### Portfolio
264
270
 
265
271
  Portfolio is a feature bootstrapped page that will take all the markdown/html files in the `_portfolio` folder to create a 3x3 image portfolio matrix.
266
272
 
267
- The portfolio page can be enable/disable through the `_config.yml` via:
273
+ The portfolio page can be enable/disable in the navigation bar through the `_config.yml` via:
268
274
  ```yml
269
275
  # Scripts / Feature
270
276
  portfolio: true
271
277
  ```
278
+
272
279
  ### Search
273
280
 
274
281
  The search feature is based on [Simple-Jekyll-search](https://github.com/christian-fei/Simple-Jekyll-Search) there is a `search.json` file that will create a list of all of the site posts, pages and portfolios.
@@ -276,7 +283,7 @@ The search feature is based on [Simple-Jekyll-search](https://github.com/christi
276
283
  Then there's a `search.js` displaying the formated results entered in the `search.html` page.
277
284
 
278
285
 
279
- The search page can be enable/disable through the `_config.yml` via:
286
+ The search page can be enable/disable in the navigation bar through the `_config.yml` via:
280
287
  ```yml
281
288
  # Scripts / Feature
282
289
  search: true
@@ -299,13 +306,26 @@ tags: [sample, markdown, html]
299
306
  > Tags are case sensitive `Tag_nAme` ≠ `tag_name`
300
307
 
301
308
  All the tags will be listed in `tags.html` with a link toward the pages or posts.
302
- The tags page can be enable/disable through the `_config.yml` via:
309
+ The tags page can be enable/disable in the navigation bar through the `_config.yml` via:
303
310
 
304
311
  ```yml
305
312
  # Scripts / Feature
306
313
  tags: true
307
314
  ```
308
315
 
316
+ ## Template as a Gem
317
+
318
+ You can use Type-on-strap as a [gem](https://rubygems.org/gems/type-on-strap). Checkout an example in the [gem-demo branch](https://github.com/Sylhare/Type-on-Strap/tree/gem-demo).
319
+ To make the feature pages available in from the gem I created them as layouts that can be invoked in the pages folder.
320
+
321
+ So if you're using the template as a theme, Make sure you have:
322
+ - A `index.html` file
323
+ - The right `_config.yml` with the theme setting such as `theme: type-on-strap` uncommented
324
+ - The feature page included. (ex: as it is already in `pages`)
325
+ - Some content ready in `_posts` and `_portfolio` to be displayed
326
+
327
+ Now you can use any theme gem with github pages : [29/11/2017 Github Pages Broadcast](https://github.com/blog/2464-use-any-theme-with-github-pages)
328
+
309
329
  ## License
310
330
 
311
331
  [The MIT License (MIT)](https://raw.githubusercontent.com/Sylhare/Type-on-Strap/master/LICENSE)
data/_includes/icons.html CHANGED
@@ -108,6 +108,17 @@
108
108
  </li>
109
109
  {% endif %}
110
110
 
111
+ {% if site.theme_settings.keybase %}
112
+ <li>
113
+ <a href="https://keybase.io/{{ site.theme_settings.keybase }}" title="{{ site.theme_settings.str_follow_on }} Keybase">
114
+ <span class="fa-stack fa-lg">
115
+ <i class="fa fa-circle fa-stack-2x"></i>
116
+ <i class="fa fa-key fa-stack-1x fa-inverse"></i>
117
+ </span>
118
+ </a>
119
+ </li>
120
+ {% endif %}
121
+
111
122
  {% if site.theme_settings.linkedin %}
112
123
  <li>
113
124
  <a href="{{ site.theme_settings.linkedin }}" title="{{ site.theme_settings.str_follow_on }} LinkedIn">
@@ -207,6 +218,17 @@
207
218
  </li>
208
219
  {% endif %}
209
220
 
221
+ {% if site.theme_settings.vimeo %}
222
+ <li>
223
+ <a href="https://vimeo.com/{{ site.theme_settings.vimeo }}" title="{{ site.theme_settings.str_follow_on }} Vimeo" class="type">
224
+ <span class="fa-stack fa-lg">
225
+ <i class="fa fa-circle fa-stack-2x"></i>
226
+ <i class="fa fa-vimeo fa-stack-1x fa-inverse"></i>
227
+ </span>
228
+ </a>
229
+ </li>
230
+ {% endif %}
231
+
210
232
  {% if site.theme_settings.wordpress %}
211
233
  <li>
212
234
  <a href="https://{{ site.theme_settings.wordpress }}.wordpress.com/" title="{{ site.theme_settings.str_follow_on }} WordPress">
@@ -15,6 +15,4 @@
15
15
  </a>
16
16
  </div>
17
17
  {% endif %}
18
- </div>
19
-
20
- {% endif %}
18
+ </div>
data/_layouts/search.html CHANGED
@@ -6,47 +6,47 @@ layout: page
6
6
  <input type="text" id="search-input" placeholder="Enter keywords..." class="search-bar">
7
7
  <br>
8
8
  <br>
9
- <ul id="results-container" ></ul>
9
+ <ul id="results-container"></ul>
10
10
 
11
11
  <section>
12
- <!-- Script pointing to jekyll-search.js -->
13
- <script src="{{ site.baseurl }}/assets/js/jekyll-search.min.js" type="text/javascript"></script>
12
+ <!-- Script pointing to jekyll-search.js -->
13
+ <script src="{{ site.baseurl }}/assets/js/simple-jekyll-search.min.js" type="text/javascript"></script>
14
14
 
15
15
  <script type="text/javascript">
16
- SimpleJekyllSearch({
17
- searchInput: document.getElementById('search-input'),
18
- resultsContainer: document.getElementById('results-container'),
19
- json: [
20
- {% if site.theme_settings.search %}
21
- {% for post in site.posts %}
22
- {
23
- "title" : "{{ post.title | escape }}",
24
- "category" : "{{ post.content | strip_html | strip_newlines | truncatewords: 25 }}",
25
- "tags" : "{{ post.tags | join: ', ' | prepend: " " }}",
26
- "url" : "{{ site.baseurl }}{{ post.url }}",
27
- "date" : "{{ post.date | date: "%B %-d, %Y" }}",
28
- "content" : "{{ post.content | strip_html | strip_newlines }}"
29
- } {% unless forloop.last %},{% endunless %}
30
- {% endfor %},
31
- {% for page in site.portfolio %}
32
- {
33
- {% if page.title != nil %}
34
- "title" : "{{ page.title | escape }}",
35
- "category" : "{{ page.content | strip_html | strip_newlines | truncatewords: 25 }}",
36
- "tags" : "{{ page.tags | join: ', ' | prepend: " " }}",
37
- "url" : "{{ site.baseurl }}{{ page.url }}",
38
- "date" : "{{ page.date | date: "%B %-d, %Y" }}",
39
- "content" : "{{ page.content | strip_html | strip_newlines }}"
40
- {% endif %}
41
- } {% unless forloop.last %},{% endunless %}
42
- {% endfor %}
43
- {% endif %}
44
- ],
45
- searchResultTemplate: '<div class="search-title"><a href="{url}"><h3> {title}</h3></a><div class="meta">{date} <div class="right"><i class="fa fa-tag"></i> {tags}</div></div><p>{category}</p></div><hr> ',
46
- noResultsText: 'No results found',
47
- limit: 10,
48
- fuzzy: true,
49
- exclude: []
50
- })
16
+ SimpleJekyllSearch({
17
+ searchInput: document.getElementById('search-input'),
18
+ resultsContainer: document.getElementById('results-container'),
19
+ json: [
20
+ {% if site.theme_settings.search %}
21
+ {% for post in site.posts %}
22
+ {
23
+ "title" : "{{ post.title | escape }}",
24
+ "category" : "{{ post.category }}",
25
+ "tags" : "{{ post.tags | join: ', ' | prepend: " " }}",
26
+ "url" : "{{ site.baseurl }}{{ post.url }}",
27
+ "date" : "{{ post.date | date: "%B %-d, %Y" }}",
28
+ "content" : "{{ post.content | strip_html | strip_newlines | replace: '"', '\\"' }}"
29
+ } {% unless forloop.last %},{% endunless %}
30
+ {% endfor %},
31
+ {% for page in site.portfolio %}
32
+ {
33
+ {% if page.title != nil %}
34
+ "title" : "{{ page.title | escape }}",
35
+ "category" : "{{ page.category }}",
36
+ "tags" : "{{ page.tags | join: ', ' | prepend: " " }}",
37
+ "url" : "{{ site.baseurl }}{{ page.url }}",
38
+ "date" : "{{ page.date | date: "%B %-d, %Y" }}",
39
+ "content" : "{{ page.content | strip_html | strip_newlines | replace: '"', '\\"' }}"
40
+ {% endif %}
41
+ } {% unless forloop.last %},{% endunless %}
42
+ {% endfor %}
43
+ {% endif %}
44
+ ],
45
+ searchResultTemplate: '<div class="search-title"><a href="{url}"><h3> {title}</h3></a><div class="meta">{date} <div class="right"><i class="fa fa-tag"></i> {tags}</div></div><p>{category}</p></div><hr> ',
46
+ noResultsText: 'No results found',
47
+ limit: 10,
48
+ fuzzy: true,
49
+ exclude: []
50
+ })
51
51
  </script>
52
- </section>
52
+ </section>
@@ -1,52 +1,68 @@
1
1
  * {
2
- margin: 0;
3
- padding: 0;
4
- box-sizing: border-box;
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
5
  }
6
+
6
7
  figure {
7
- margin: 0;
8
+ margin: 0;
8
9
  }
10
+
9
11
  // For correct line number width in Github Gists
10
12
  .gist table tbody tr td {
11
- box-sizing: content-box;
13
+ box-sizing: content-box;
12
14
  }
15
+
13
16
  html {
14
- background: $background-color;
17
+ background: $background-color;
15
18
  }
16
19
 
17
20
  // Typography
18
21
  ::selection {
19
- background: $selection-color;
22
+ background: $selection-color;
20
23
  }
24
+
21
25
  ::-moz-selection {
22
- background: $selection-color;
26
+ background: $selection-color;
23
27
  }
28
+
24
29
  body {
25
- color: $text-color;
26
- font-family: $font-family-main;
27
- font-size: $font-size;
28
- word-wrap: break-word;
29
- }
30
- h1, h2, h3, h4, h5, h6 {
31
- font-family: $font-family-headings;
32
- line-height: 1.3;
33
- margin: 0.67em 0;
34
- a {
35
30
  color: $text-color;
36
- }
31
+ font-family: $font-family-main;
32
+ font-size: $font-size;
33
+ word-wrap: break-word;
37
34
  }
35
+
36
+ h1,
37
+ h2,
38
+ h3,
39
+ h4,
40
+ h5,
41
+ h6 {
42
+ font-family: $font-family-headings;
43
+ line-height: 1.3;
44
+ margin: 0.67em 0;
45
+ a {
46
+ color: $text-color;
47
+ }
48
+ }
49
+
38
50
  h1 {
39
- font-size: 2.5em;
51
+ font-size: 2.5em;
40
52
  }
53
+
41
54
  h2 {
42
- font-size: 2em;
55
+ font-size: 2em;
43
56
  }
57
+
44
58
  h3 {
45
- font-size: 1.5em;
59
+ font-size: 1.5em;
46
60
  }
61
+
47
62
  h4 {
48
- font-size: 1.15em;
63
+ font-size: 1.15em;
49
64
  }
65
+
50
66
  blockquote {
51
67
  border-left: 2px solid darken($blockquote-color, 20%);
52
68
  margin: 1em 1em;
@@ -54,94 +70,120 @@ blockquote {
54
70
  background-color: $blockquote-color;
55
71
  box-shadow: 0 2px 2px $border-color;
56
72
  }
73
+
57
74
  blockquote p:last-child,
58
75
  footer p:last-child {
59
- margin-bottom: 0;
76
+ margin-bottom: 0;
60
77
  }
78
+
61
79
  table {
62
- table-layout:fixed;
63
- width:100%;
64
- word-wrap:break-word;
65
- @media (max-width: 1100px) {
66
- overflow-x: scroll;
67
- display: inline-block;
68
- }
80
+ table-layout: fixed;
81
+ width: 100%;
82
+ word-wrap: break-word;
83
+ @media (max-width: 1100px) {
84
+ overflow-x: scroll;
85
+ display: inline-block;
86
+ }
69
87
  }
88
+
70
89
  td,
71
90
  th {
72
- padding: 0.5em 1em;
73
- border: 1px solid $border-color;
74
- text-align: left;
91
+ padding: 0.5em 1em;
92
+ border: 1px solid $border-color;
93
+ text-align: left;
75
94
  }
95
+
76
96
  table,
77
97
  dl,
78
98
  code,
79
99
  kbd,
80
100
  pre,
81
101
  samp {
82
- margin: 1em 0;
102
+ margin: 1em 0;
83
103
  }
104
+
84
105
  dt {
85
- font-weight: bold;
106
+ font-weight: bold;
86
107
  }
108
+
87
109
  dd {
88
110
  margin-left: 2em;
89
111
  }
90
- p, ol, ul, dl, .math-display {
91
- line-height: 1.5;
92
- margin-bottom: 1em;
112
+
113
+ p,
114
+ ol,
115
+ ul,
116
+ dl,
117
+ .math-display {
118
+ line-height: 1.5;
119
+ margin-bottom: 1em;
93
120
  }
121
+
94
122
  // KaTeX math display
95
123
  .math-display {
96
- display: inline-block;
97
- width: 100%;
124
+ display: inline-block;
125
+ width: 100%;
98
126
  }
127
+
99
128
  // Lists within lists
100
- li > ul, li > ol {
129
+ li > ul,
130
+ li > ol {
101
131
  margin-bottom: 0;
102
132
  margin-left: 1em;
103
133
  }
104
- ol, ul {
105
- list-style-position: inside;
134
+
135
+ ol,
136
+ ul {
137
+ list-style-position: inside;
106
138
  }
139
+
107
140
  hr {
108
- border: 0;
109
- border-top: 1px solid $border-color;
110
- border-bottom: 1px solid #fff;
111
- margin: 1em 0;
141
+ border: 0;
142
+ border-top: 1px solid $border-color;
143
+ border-bottom: 1px solid #fff;
144
+ margin: 1em 0;
112
145
  }
146
+
113
147
  a {
114
- color: $link-color;
115
- text-decoration: none;
148
+ color: $link-color;
149
+ text-decoration: none;
116
150
  }
117
151
 
118
- /* ---- Responsive ---- */
119
-
120
- iframe, img, embed, object, video {
121
- max-width: 100%;
122
- padding: 0 10%;
152
+ iframe,
153
+ img,
154
+ embed,
155
+ object,
156
+ video {
157
+ max-width: 100%;
158
+ padding: 0 10%;
123
159
  }
160
+
124
161
  img[align=left] {
125
- margin-right: 3%;
162
+ margin-right: 3%;
126
163
  }
164
+
127
165
  img[align=right] {
128
- margin-left: 3%;
166
+ margin-left: 3%;
129
167
  }
130
168
 
169
+ /* ---- Responsive ---- */
170
+
131
171
  @media screen and (max-width: $sm-break) {
132
172
  h1 {
133
- font-size: 2em;
173
+ font-size: 2em;
134
174
  }
135
175
  h2 {
136
- font-size: 1.5em;
176
+ font-size: 1.5em;
137
177
  }
138
178
  h3 {
139
- font-size: 1em;
179
+ font-size: 1em;
140
180
  }
141
181
  h4 {
142
- font-size: 0.75em;
182
+ font-size: 0.75em;
143
183
  }
144
- p, li {
145
- font-size: 0.75em;
184
+ p,
185
+ li,
186
+ code {
187
+ font-size: 0.75em;
146
188
  }
147
- }
189
+ }
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  .header-txt-shadow {
20
- text-shadow: 1px 1px 2px $text-shadow;
20
+ text-shadow: 1px 1px 2px $text-shadow;
21
21
  }
22
22
 
23
23
  // Buttons
@@ -1,6 +1,12 @@
1
1
  // Typography
2
- $font-family-main: 'Source Sans Pro', Helvetica, Arial, sans-serif;
3
- $font-family-headings: 'Source Sans Pro', Helvetica, Arial, sans-serif;
2
+ $font-family-main: 'Source Sans Pro',
3
+ Helvetica,
4
+ Arial,
5
+ sans-serif;
6
+ $font-family-headings: 'Source Sans Pro',
7
+ Helvetica,
8
+ Arial,
9
+ sans-serif;
4
10
  $font-size: 1.25em;
5
11
 
6
12
  // Padding
@@ -12,18 +18,14 @@ $padding-x-small: 3%;
12
18
  $brand-color: #fff;
13
19
  $background-color: #fff;
14
20
  $border-color: rgba(0, 0, 0, 0.1); // rgba recommended if using feature images
15
-
16
21
  // Typography colours
17
22
  $text-color: #383838;
18
23
  $link-color: #507492; // #1ABC9C;
19
24
  $selection-color: #D4D4D4; // visible when highlighting text
20
25
  $blockquote-color: #EEF7FA; // $background-color;
21
26
 
22
- // Tags color
23
- $tags-color: #b0b0b0;
24
-
25
27
  //Search color
26
- $link-shadow: transparentize($link-color, .6);//rgba(26, 188, 156, 0.6);
28
+ $link-shadow: transparentize($link-color, .6); //rgba(26, 188, 156, 0.6);
27
29
  $text-shadow: #3f3f3f;
28
30
  $search-color: #999;
29
31
 
@@ -33,7 +35,6 @@ $header-link-color: #383838;
33
35
  // Feature image for articles
34
36
  $feature-image-text-color: #fff;
35
37
  $feature-image-size: cover; // options include "cover", "contain", "auto"
36
-
37
38
  // Header description box
38
39
  $header-desc-background-color: #507492;
39
40
  $header-desc-text-color: #FFF;
@@ -1,21 +1,22 @@
1
1
  #post-nav {
2
2
  width: 100%;
3
- border-bottom: 1px solid $border-color;
4
- float: left;
5
- text-align: center;
3
+ display: inline-block;
6
4
  @extend %padding-small;
7
- i {
8
- vertical-align: middle;
9
- }
5
+
10
6
  a {
11
7
  width: 100%;
12
- display: inline-block;
13
8
  padding: 0;
9
+ margin: 0;
14
10
  }
15
11
  p {
16
12
  @extend .meta;
17
13
  }
18
- .post-nav-post + .post-nav-post {
19
- margin-top: 1em;
14
+
15
+ #previous-post {
16
+ float: left;
17
+ }
18
+
19
+ #next-post {
20
+ float: right;
20
21
  }
21
22
  }
@@ -1,7 +1,6 @@
1
1
  // Header text feature
2
2
  .call-out {
3
3
  @extend %padding-regular;
4
- object-fit: cover;
5
4
  display: inline-block;
6
5
  width: 100%;
7
6
  height: 100%;
@@ -10,25 +9,32 @@
10
9
  text-align: center;
11
10
  color: $header-desc-text-color;
12
11
  background-repeat: no-repeat;
13
-
14
- @media (min-width: $break) {
15
- background-size: $feature-image-size;
16
- }
17
-
18
- /* --- Responsive ---*/
12
+ background-size: $feature-image-size;
13
+
14
+ /* --- Responsive --- */
19
15
  @media screen and (max-width: 850px) {
20
- background-size: auto 150%;
21
- }
16
+ background-size: 100% auto;
17
+ }
22
18
 
23
19
  //For white images
24
- p, a, li, h1, h2, h3, h4, h5 {
20
+ p,
21
+ a,
22
+ li,
23
+ h1,
24
+ h2,
25
+ h3,
26
+ h4,
27
+ h5 {
25
28
  @extend .header-txt-shadow;
26
29
  }
27
-
30
+
31
+ p:last-child {
32
+ margin-bottom: 0;
33
+ }
28
34
  }
29
35
 
30
- .call-out p:last-child {
31
- margin-bottom: 0;
36
+ #main {
37
+ background-position: 100% 0px, 0% center, center top;
32
38
  }
33
39
 
34
40
  // Post listing
@@ -45,19 +51,17 @@
45
51
  }
46
52
  img {
47
53
  padding: 0;
48
- vertical-align: middle;
54
+ vertical-align: middle;
49
55
  }
50
56
 
51
57
  .post-img {
52
58
  vertical-align: middle;
53
59
  border-radius: 25px;
54
60
  overflow: hidden;
55
-
61
+
56
62
  @media (min-width: $break) {
57
63
  height: 250px;
58
- }
59
-
60
- //Smaller screen
64
+ } //Smaller screen
61
65
  @media screen and (max-width: $break) {
62
66
  height: 150px;
63
67
  }
@@ -90,17 +94,18 @@
90
94
  }
91
95
 
92
96
  // Pagination
93
- .pagination .button {
94
- margin: 0 1.5em;
95
- i {
96
- vertical-align: middle;
97
- }
98
- }
99
-
100
97
  .pagination {
101
98
  padding: $padding-small $padding-large 0 $padding-large;
102
99
  text-align: center;
103
100
  @media (max-width: 600px) {
104
101
  padding: $padding-small;
105
102
  }
103
+
104
+ .button {
105
+ margin: 0 1.5em;
106
+ i {
107
+ vertical-align: middle;
108
+ }
109
+ }
110
+
106
111
  }
@@ -7,4 +7,5 @@ h1.title {
7
7
  margin-top: 5px;
8
8
  text-shadow: 1px 1px 2px $text-shadow;
9
9
  }
10
- //Shared css in _post.scss
10
+
11
+ //Shared css in _post.scss
@@ -50,7 +50,7 @@
50
50
  text-align: center;
51
51
  display: inline-block;
52
52
  vertical-align: middle;
53
-
53
+
54
54
  @media screen and (max-width: $sm-break) {
55
55
  font-size: 7px;
56
56
  }
@@ -74,4 +74,3 @@
74
74
  }
75
75
  }
76
76
  }
77
-
@@ -52,6 +52,7 @@ header {
52
52
  }
53
53
 
54
54
  /* --- Feature image --- */
55
+
55
56
  .feature-image {
56
57
  padding: 0%;
57
58
  .post-link {
@@ -84,6 +85,7 @@ header {
84
85
  }
85
86
 
86
87
  /* --- Post navigation --- */
88
+
87
89
  #post-nav {
88
90
  width: 100%;
89
91
  border-bottom: 1px solid $border-color;
@@ -45,7 +45,7 @@
45
45
  }
46
46
  }
47
47
 
48
- .search-title a{
48
+ .search-title a {
49
49
  h3 {
50
50
  margin: 0;
51
51
  }
@@ -1,7 +1,7 @@
1
1
  .tag-list {
2
2
  width: 100%;
3
3
  font-size: 0.9em;
4
-
4
+
5
5
  div.meta {
6
6
  margin-right: 0.5em;
7
7
  }
@@ -11,13 +11,9 @@
11
11
  padding: 0.2em 0.4em;
12
12
  }
13
13
 
14
- .tag {
15
- margin-right: 0.5em;
16
- color: $tags-color;
17
- }
18
-
19
14
  p {
20
15
  margin: 0;
16
+ padding: 0 0.2em 0 0;
21
17
  }
22
18
  }
23
19
 
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Simple-Jekyll-Search v1.6.0 (https://github.com/christian-fei/Simple-Jekyll-Search)
3
+ * Copyright 2015-2017, Christian Fei
4
+ * Licensed under the MIT License.
5
+ */
6
+ !function(){"use strict";function e(e){return Boolean(e)&&"[object Object]"===Object.prototype.toString.call(e)}function t(e){return a.push(e),a}var n={load:function(e,t){var n=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");n.open("GET",e,!0),n.onreadystatechange=function(e,t){return function(){if(4===e.readyState&&200===e.status)try{t(null,JSON.parse(e.responseText))}catch(n){t(n,null)}}}(n,t),n.send()}},r=function(e,t){var n=t.length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var i=0,o=0;i<r;i++){for(var u=e.charCodeAt(i);o<n;)if(t.charCodeAt(o++)===u)continue e;return!1}return!0},i=new function(){this.matches=function(e,t){return r(t,e)}},o=new function(){this.matches=function(e,t){return"string"==typeof e&&(e=e.trim()).toLowerCase().indexOf(t.toLowerCase())>=0}},u={put:function(n){return e(n)?t(n):function(e){return Boolean(e)&&"[object Array]"===Object.prototype.toString.call(e)}(n)?function(n){for(var r=[],i=0,o=n.length;i<o;i++)e(n[i])&&r.push(t(n[i]));return r}(n):undefined},clear:function(){return a.length=0,a},search:function(e){return e?function(e,t,n,r){for(var i=[],o=0;o<e.length&&i.length<r.limit;o++){var u=function(e,t,n,r){for(var i in e)if(!function(e,t){for(var n=!1,r=0,i=(t=t||[]).length;r<i;r++){var o=t[r];!n&&new RegExp(e).test(o)&&(n=!0)}return n}(e[i],r.exclude)&&n.matches(e[i],t))return e}(e[o],t,n,r);u&&i.push(u)}return i}(a,e,l.searchStrategy,l):[]},setOptions:function(e){(l=e||{}).fuzzy=e.fuzzy||!1,l.limit=e.limit||10,l.searchStrategy=e.fuzzy?i:o}},a=[],l={};l.fuzzy=!1,l.limit=10,l.searchStrategy=l.fuzzy?i:o;var c={compile:function(e){return f.template.replace(f.pattern,function(t,n){var r=f.middleware(n,e[n],f.template);return void 0!==r?r:e[n]||t})},setOptions:function(e){f.pattern=e.pattern||f.pattern,f.template=e.template||f.template,"function"==typeof e.middleware&&(f.middleware=e.middleware)}},f={};f.pattern=/\{(.*?)\}/g,f.template="",f.middleware=function(){};var s={merge:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r],"undefined"!=typeof t[r]&&(n[r]=t[r]));return n},isJSON:function(e){try{return!!(e instanceof Object&&JSON.parse(JSON.stringify(e)))}catch(t){return!1}}};!function(e){function t(e){u.put(e),a.searchInput.addEventListener("keyup",function(e){(function(e){return-1===[13,16,20,37,38,39,40,91].indexOf(e)})(e.which)&&(a.resultsContainer.innerHTML="",i(e.target.value))})}function r(e){a.resultsContainer.innerHTML+=e}function i(e){(function(e){return e&&e.length>0})(e)&&function(e){var t=e.length;if(0===t)return r(a.noResultsText);for(var n=0;n<t;n++)r(c.compile(e[n]))}(u.search(e))}function o(e){throw new Error("SimpleJekyllSearch --- "+e)}var a={searchInput:null,resultsContainer:null,json:[],searchResultTemplate:'<li><a href="{url}" title="{desc}">{title}</a></li>',templateMiddleware:function(){},noResultsText:"No results found",limit:10,fuzzy:!1,exclude:[]},l=["searchInput","resultsContainer","json"],f=function p(e){if(!function(e){return!!e&&"undefined"!=typeof e.required&&e.required instanceof Array}(e))throw new Error("-- OptionsValidator: required options missing");if(!(this instanceof p))return new p(e);var t=e.required;this.getRequiredOptions=function(){return t},this.validate=function(e){var n=[];return t.forEach(function(t){"undefined"==typeof e[t]&&n.push(t)}),n}}({required:l});e.SimpleJekyllSearch=function(e){return f.validate(e).length>0&&o("You must specify the following required options: "+l),a=s.merge(a,e),c.setOptions({template:a.searchResultTemplate,middleware:a.templateMiddleware}),u.setOptions({fuzzy:a.fuzzy,limit:a.limit}),s.isJSON(a.json)?t(a.json):function(e){n.load(e,function(n,r){n&&o("failed to get JSON ("+e+")"),t(r)})}(a.json),{search:i}},e.SimpleJekyllSearch.init=e.SimpleJekyllSearch,"function"==typeof e.SimpleJekyllSearchInit&&e.SimpleJekyllSearchInit.call(this,e.SimpleJekyllSearch)}(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: 0.2.0
4
+ version: 0.3.0
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: 2017-12-03 00:00:00.000000000 Z
12
+ date: 2017-12-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -218,12 +218,12 @@ files:
218
218
  - assets/fonts/glyphicons-halflings-regular.woff
219
219
  - assets/fonts/glyphicons-halflings-regular.woff2
220
220
  - assets/js/bootstrap.min.js
221
- - assets/js/jekyll-search.min.js
222
221
  - assets/js/jquery-3.2.1.min.js
223
222
  - assets/js/katex.min.js
224
223
  - assets/js/katex_init.js
225
224
  - assets/js/main.min.js
226
225
  - assets/js/navbar.js
226
+ - assets/js/simple-jekyll-search.min.js
227
227
  homepage: https://github.com/sylhare/Type-on-Strap
228
228
  licenses:
229
229
  - MIT
@@ -1,6 +0,0 @@
1
- /*!
2
- * Simple-Jekyll-Search v1.4.1 (https://github.com/christian-fei/Simple-Jekyll-Search)
3
- * Copyright 2015-2017, Christian Fei
4
- * Licensed under MIT (https://github.com/christian-fei/Simple-Jekyll-Search/blob/master/LICENSE.md)
5
- */
6
- !function t(e,r,n){function i(o,a){if(!r[o]){if(!e[o]){var c="function"==typeof require&&require;if(!a&&c)return c(o,!0);if(u)return u(o,!0);var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}var f=r[o]={exports:{}};e[o][0].call(f.exports,function(t){var r=e[o][1][t];return i(r||t)},f,f.exports,t,e,r,n)}return r[o].exports}for(var u="function"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(t,e,r){"use strict";e.exports=function(t,e){var r=e.length,n=t.length;if(n>r)return!1;if(n===r)return t===e;t:for(var i=0,u=0;i<n;i++){for(var o=t.charCodeAt(i);u<r;)if(e.charCodeAt(u++)===o)continue t;return!1}return!0}},{}],2:[function(t,e,r){"use strict";function n(t,e){return function(){if(4===t.readyState&&200===t.status)try{e(null,JSON.parse(t.responseText))}catch(r){e(r,null)}}}function i(){return window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}e.exports={load:function(t,e){var r=i();r.open("GET",t,!0),r.onreadystatechange=n(r,e),r.send()}}},{}],3:[function(t,e,r){"use strict";e.exports=function n(t){if(!function(t){return!!t&&"undefined"!=typeof t.required&&t.required instanceof Array}(t))throw new Error("-- OptionsValidator: required options missing");if(!(this instanceof n))return new n(t);var e=t.required;this.getRequiredOptions=function(){return e},this.validate=function(t){var r=[];return e.forEach(function(e){"undefined"==typeof t[e]&&r.push(e)}),r}}},{}],4:[function(t,e,r){"use strict";function n(t){return!!t&&"[object Object]"===Object.prototype.toString.call(t)}function i(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}function u(t){return p.push(t),p}function o(t){for(var e=[],r=0;r<t.length;r++)n(t[r])&&e.push(u(t[r]));return e}function a(t,e,r,n){for(var i=[],u=0;u<t.length&&i.length<n.limit;u++){var o=c(t[u],e,r,n);o&&i.push(o)}return i}function c(t,e,r,n){for(var i in t)if(!s(t[i],n.exclude)&&r.matches(t[i],e))return t}function s(t,e){var r=!1;e=e||[];for(var n=0;n<e.length;n++){var i=e[n];!r&&new RegExp(t).test(i)&&(r=!0)}return r}e.exports={put:function(t){return n(t)?u(t):i(t)?o(t):undefined},clear:function(){return p.length=0,p},get:function(){return p},search:function(t){return t?a(p,t,h.searchStrategy,h):[]},setOptions:function(t){(h=t||{}).fuzzy=t.fuzzy||!1,h.limit=t.limit||10,h.searchStrategy=t.fuzzy?f:l}};var f=t("./SearchStrategies/FuzzySearchStrategy"),l=t("./SearchStrategies/LiteralSearchStrategy"),p=[],h={};h.fuzzy=!1,h.limit=10,h.searchStrategy=h.fuzzy?f:l},{"./SearchStrategies/FuzzySearchStrategy":5,"./SearchStrategies/LiteralSearchStrategy":6}],5:[function(t,e,r){"use strict";var n=t("fuzzysearch");e.exports=new function(){this.matches=function(t,e){return n(e,t)}}},{fuzzysearch:1}],6:[function(t,e,r){"use strict";e.exports=new function(){this.matches=function(t,e){return"string"==typeof t&&(t=t.trim()).toLowerCase().indexOf(e.toLowerCase())>=0}}},{}],7:[function(t,e,r){"use strict";e.exports={compile:function(t){return n.template.replace(n.pattern,function(e,r){var i=n.middleware(r,t[r],n.template);return void 0!==i?i:t[r]||e})},setOptions:function(t){n.pattern=t.pattern||n.pattern,n.template=t.template||n.template,"function"==typeof t.middleware&&(n.middleware=t.middleware)}};var n={};n.pattern=/\{(.*?)\}/g,n.template="",n.middleware=function(){}},{}],8:[function(t,e,r){!function(e,r){"use strict";function n(t){m.put(t),a()}function i(t){S.load(t,function(e,r){e&&p("failed to get JSON ("+t+")"),n(r)})}function u(){h.resultsContainer.innerHTML=""}function o(t){h.resultsContainer.innerHTML+=t}function a(){h.searchInput.addEventListener("keyup",function(t){l(t.which)&&(u(),c(t.target.value))})}function c(t){f(t)&&s(m.search(t))}function s(t){var e=t.length;if(0===e)return o(h.noResultsText);for(var r=0;r<e;r++)o(y.compile(t[r]))}function f(t){return t&&t.length>0}function l(t){return-1===[13,16,20,37,38,39,40,91].indexOf(t)}function p(t){throw new Error("SimpleJekyllSearch --- "+t)}var h={searchInput:null,resultsContainer:null,json:[],searchResultTemplate:'<li><a href="{url}" title="{desc}">{title}</a></li>',templateMiddleware:function(){},noResultsText:"No results found",limit:10,fuzzy:!1,exclude:[]},d=["searchInput","resultsContainer","json"],y=t("./Templater"),m=t("./Repository"),S=t("./JSONLoader"),g=t("./OptionsValidator")({required:d}),v=t("./utils");e.SimpleJekyllSearch=function(t){return g.validate(t).length>0&&p("You must specify the following required options: "+d),h=v.merge(h,t),y.setOptions({template:h.searchResultTemplate,middleware:h.templateMiddleware}),m.setOptions({fuzzy:h.fuzzy,limit:h.limit}),v.isJSON(h.json)?n(h.json):i(h.json),{search:c}},e.SimpleJekyllSearch.init=e.SimpleJekyllSearch,"function"==typeof e.SimpleJekyllSearchInit&&e.SimpleJekyllSearchInit.call(this,e.SimpleJekyllSearch)}(window,document)},{"./JSONLoader":2,"./OptionsValidator":3,"./Repository":4,"./Templater":7,"./utils":9}],9:[function(t,e,r){"use strict";e.exports={merge:function(t,e){var r={};for(var n in t)r[n]=t[n],"undefined"!=typeof e[n]&&(r[n]=e[n]);return r},isJSON:function(t){try{return!!(t instanceof Object&&JSON.parse(JSON.stringify(t)))}catch(e){return!1}}}},{}]},{},[8]);