type-on-strap 2.1.0 → 2.1.2
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 +10 -5
- data/_includes/head.html +2 -1
- data/_includes/icons.html +3 -3
- data/assets/js/main.min.js +1 -1
- data/assets/js/partials/navbar.js +3 -6
- data/assets/js/vendor/simple-jekyll-search.min.js +3 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f273f904ccd3cf3713d2195cf35a0fdefd88dee40e28d383d02a00f010c6b6f
|
4
|
+
data.tar.gz: 9bd298424e79c4b5d75183c35896b0cc5f5c0da28109aacb6977343ce5d6ced9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cbf3b6b70f12f73cc456fbf3fa0ab478024f48a6e5917bce3b437a459055be074ad810d07703a52765b5739fea107b3c52388028525f5e4985fe63b6d4daa9e
|
7
|
+
data.tar.gz: 3a4e1cec666fc08f461864c2e8d604b260f54a34397d083df831d28ea88c3bc2fefc2c34012c9131d177a23dcbd34060af7b7905b418b01b332ea871f11c1ae8
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -51,7 +51,7 @@ Check out this tutorial: [Use as Ruby Gem](https://github.com/Sylhare/Type-on-St
|
|
51
51
|
Here are the main files of the template
|
52
52
|
|
53
53
|
```bash
|
54
|
-
|
54
|
+
Type-on-Strap
|
55
55
|
├── _includes # theme includes
|
56
56
|
├── _layouts # theme layouts (see below for details)
|
57
57
|
├── _portfolio # collection of article to be populated in the portfolio page
|
@@ -70,6 +70,10 @@ jekyll-theme-basically-basic
|
|
70
70
|
| ├── search.html # Search page
|
71
71
|
| └── tags.md # The tag page
|
72
72
|
├── _config.yml # sample configuration
|
73
|
+
├── _data.yml
|
74
|
+
| ├── authors.yml # Update the post authors configurations
|
75
|
+
| ├── language.yml # Localization configuration
|
76
|
+
| └── social.yml # Social configurations (RSS, Twitter, ...)
|
73
77
|
└── index.html # sample home page (blog page paginated)
|
74
78
|
```
|
75
79
|
|
@@ -193,8 +197,8 @@ to share the article on those platform.
|
|
193
197
|
|
194
198
|
#### Footer
|
195
199
|
|
196
|
-
Display
|
197
|
-
All icon variables should be your username enclosed in quotes (e.g. "username") in `
|
200
|
+
Display in the footer.
|
201
|
+
All icon variables should be your username enclosed in quotes (e.g. "username") in `_data/social.yml`,
|
198
202
|
except for the following variables:
|
199
203
|
|
200
204
|
```yml
|
@@ -206,6 +210,8 @@ stack_overflow: https://stackoverflow.com/users/0000/first-last
|
|
206
210
|
youtube: UCqECaJ8Gagnn7YCbPEzWH6g # Youtube token of your channel in the url
|
207
211
|
```
|
208
212
|
|
213
|
+
You can update the RSS settings in `_data/social` to change the default feed path (generated by [jekyll-feel](https://github.com/jekyll/jekyll-feed)).
|
214
|
+
|
209
215
|
### Customizing Posts
|
210
216
|
|
211
217
|
When writing a post, be sure in jekyll to:
|
@@ -265,8 +271,7 @@ some text in the excerpt
|
|
265
271
|
|
266
272
|
The html is stripped out of the excerpt so it only display text.
|
267
273
|
|
268
|
-
|
269
|
-
### Image aligner
|
274
|
+
#### Image aligner
|
270
275
|
|
271
276
|
To easily add align images side by side in your article using the `aligner.html` include:
|
272
277
|
|
data/_includes/head.html
CHANGED
data/_includes/icons.html
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{% if site.data.social.rss or site.theme_settings.rss %}
|
2
2
|
<li>
|
3
|
-
<a feed.xml href="{{
|
4
|
-
|
5
|
-
|
3
|
+
<a feed.xml href="{{ absolute_url }}{{ site.data.social.feed.path | default: 'feed.xml' }}"
|
4
|
+
title="{{ site.data.language.str_rss_follow | default: "Follow RSS feed" }}">
|
5
|
+
<span class="fa-stack fa-lg">
|
6
6
|
<i class="fa fa-circle fa-stack-2x"></i>
|
7
7
|
<i class="fa fa-rss fa-stack-1x fa-inverse"></i>
|
8
8
|
</span>
|
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");["click","touch"].forEach(function(e){t.addEventListener(e,function(
|
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");["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"})});
|
@@ -8,7 +8,7 @@ document.addEventListener("DOMContentLoaded", function (event) {
|
|
8
8
|
|
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
|
});
|
@@ -17,10 +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
|
-
var
|
21
|
-
|
22
|
-
var mainStyle = main.style;
|
23
|
-
|
24
|
-
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';
|
25
22
|
});
|
26
23
|
});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
|
-
* Simple-Jekyll-Search v1.
|
3
|
-
* Copyright 2015-
|
2
|
+
* Simple-Jekyll-Search v1.7.4 (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 o={compile:function M(r){return i.template.replace(i.pattern,function(t,e){var n=i.middleware(e,r[e],i.template);return void 0!==n?n:r[e]||t})},setOptions:function T(t){i.pattern=t.pattern||i.pattern,i.template=t.template||i.template,"function"==typeof t.middleware&&(i.middleware=t.middleware)}},i={};i.pattern=/\{(.*?)\}/g,i.template="",i.middleware=function(){};var n=function x(t,e){var n=e.length,r=t.length;if(n<r)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},e=new function J(){this.matches=function(t,e){return n(e.toLowerCase(),t.toLowerCase())}};var r=new function R(){this.matches=function(e,t){return!!e&&(e=e.trim().toLowerCase(),(t=t.trim().toLowerCase()).split(" ").filter(function(t){return 0<=e.indexOf(t)}).length===t.split(" ").length)}};var u={put:function b(t){if(l(t))return p(t);if(function e(t){return Boolean(t)&&"[object Array]"===Object.prototype.toString.call(t)}(t))return function i(t){var e=[];f();for(var n=0,r=t.length;n<r;n++)l(t[n])&&e.push(p(t[n]));return e}(t);return undefined},clear:f,search:function N(t){return t?function a(t,e,n,r){for(var i=[],o=0;o<t.length&&i.length<r.limit;o++){var u=d(t[o],e,n,r);u&&i.push(u)}return i}(c,t,s.searchStrategy,s).sort(s.sort):[]},setOptions:function E(t){(s=t||{}).fuzzy=t.fuzzy||!1,s.limit=t.limit||10,s.searchStrategy=t.fuzzy?e:r,s.sort=t.sort||a}};function a(){return 0}var c=[],s={};function f(){return c.length=0,c}function l(t){return Boolean(t)&&"[object Object]"===Object.prototype.toString.call(t)}function p(t){return c.push(t),c}function d(t,e,n,r){for(var i in t)if(!h(t[i],r.exclude)&&n.matches(t[i],e))return t}function h(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}s.fuzzy=!1,s.limit=10,s.searchStrategy=s.fuzzy?e:r,s.sort=a;var m={load:function A(t,e){var n=function r(){return window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}();n.open("GET",t,!0),n.onreadystatechange=function i(e,n){return function(){if(4===e.readyState&&200===e.status)try{n(null,JSON.parse(e.responseText))}catch(t){n(t,null)}}}(n,e),n.send()}};var t=function H(t){if(!function e(t){return t&&("undefined"!=typeof t.required&&t.required instanceof Array)}(t))throw new Error("-- OptionsValidator: required options missing");if(!(this instanceof H))return new H(t);var r=t.required;this.getRequiredOptions=function(){return r},this.validate=function(e){var n=[];return r.forEach(function(t){"undefined"==typeof e[t]&&n.push(t)}),n}},v={merge:function X(t,e){var n={};for(var r in t)n[r]=t[r],"undefined"!=typeof e[r]&&(n[r]=e[r]);return n},isJSON:function k(t){try{return t instanceof Object&&JSON.parse(JSON.stringify(t))?!0:!1}catch(e){return!1}}};var w,y,g,O,z;function S(t){u.put(t),function e(){y.searchInput.addEventListener("keyup",function(t){!function e(t){return-1===[13,16,20,37,38,39,40,91].indexOf(t)}(t.which)||(j(),C(t.target.value))})}()}function j(){y.resultsContainer.innerHTML=""}function q(t){y.resultsContainer.innerHTML+=t}function C(t){!function e(t){return t&&0<t.length}(t)||(j(),function i(t,e){var n=t.length;if(0===n)return q(y.noResultsText);for(var r=0;r<n;r++)t[r].query=e,q(o.compile(t[r]))}(u.search(t),t))}function L(t){throw new Error("SimpleJekyllSearch --- "+t)}w=window,y={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:[]},O=t({required:g=["searchInput","resultsContainer","json"]}),z=function(t){return 0<O.validate(t).length&&L("You must specify the following required options: "+g),y=v.merge(y,t),o.setOptions({template:y.searchResultTemplate,middleware:y.templateMiddleware}),u.setOptions({fuzzy:y.fuzzy,limit:y.limit,sort:y.sortMiddleware}),(v.isJSON(y.json)?S:function e(n){m.load(n,function(t,e){t&&L("failed to get JSON ("+n+")"),S(e)})})(y.json),{search:C}},w.SimpleJekyllSearch=function(t){var e=z(t);return t.success.call(e),e}}();
|
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.1.
|
4
|
+
version: 2.1.2
|
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-05-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -286,7 +286,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
286
286
|
- !ruby/object:Gem::Version
|
287
287
|
version: '0'
|
288
288
|
requirements: []
|
289
|
-
|
289
|
+
rubyforge_project:
|
290
|
+
rubygems_version: 2.7.7
|
290
291
|
signing_key:
|
291
292
|
specification_version: 4
|
292
293
|
summary: A simple and responsive jekyll theme template
|