type-on-strap 0.5.3 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,8 @@
12
12
  "excerpt" : {{ post.content | truncate: '250' | jsonify }},
13
13
  "content" : {{ post.content | jsonify }}
14
14
  } {% unless forloop.last %},{% endunless %}
15
- {% endfor %}{% if site.portfolio.size > 0 %},{% endif %}
15
+ {% endfor %}
16
+ {% if site.portfolio.size > 0 %},{% endif %}
16
17
  {% for page in site.portfolio %}
17
18
  {
18
19
  {% if page.title != nil %}
@@ -21,8 +22,8 @@
21
22
  "tags" : "{{ page.tags | join: ', ' | prepend: " " }}",
22
23
  "url" : "{{ site.baseurl }}{{ page.url }}",
23
24
  "date" : "{{ page.date | date: "%B %-d, %Y" }}",
24
- "excerpt" : {{ post.content | truncate: '250' | jsonify }},
25
- "content" : {{ post.content | truncate: '250' | jsonify }}
25
+ "excerpt" : {{ page.content | truncate: '250' | jsonify }},
26
+ "content" : {{ page.content | truncate: '250' | jsonify }}
26
27
  {% endif %}
27
28
  } {% unless forloop.last %},{% endunless %}
28
29
  {% endfor %}
Binary file
@@ -1 +1 @@
1
- document.addEventListener("DOMContentLoaded",function(e){var t=document.getElementById("pull"),n=document.querySelector("nav ul");t.addEventListener("click",function(e){n.classList.toggle("hide")}),window.addEventListener("resize",function(){window.innerWidth>320&&n.removeAttribute("style")}),window.addEventListener("scroll",function(){var e=window.pageYOffset|document.body.scrollTop;document.getElementById("main").style.backgroundPosition="100% "+parseInt(-e/3)+"px, 0%, center top"})});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),e.parentNode.insertBefore(n,e)}});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()});
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");t.addEventListener("click",function(e){n.classList.toggle("hide")}),window.addEventListener("scroll",function(){var e=window.pageYOffset|document.body.scrollTop;document.getElementById("main").style.backgroundPosition="100% "+parseInt(-e/3)+"px, 0%, center top"})});
@@ -20,7 +20,9 @@ Array.prototype.forEach.call(elements, function (element) {
20
20
  katexElement.className += "math-inline";
21
21
  }
22
22
 
23
- katex.render(textToRender, katexElement);
23
+ // Set displayMode to true to center equation
24
+ // https://github.com/Khan/KaTeX/issues/626
25
+ katex.render(textToRender, katexElement, {displayMode: false});
24
26
  element.parentNode.insertBefore(katexElement, element);
25
27
  }
26
28
  });
@@ -0,0 +1,22 @@
1
+ // init Masonry
2
+ try {
3
+ var elem = document.querySelector('.grid');
4
+ var msnry = new Masonry(elem, {
5
+ itemSelector: '.grid-item',
6
+ columnWidth: '.grid-sizer',
7
+ gutter: '.gutter-sizer',
8
+ percentPosition: true
9
+ });
10
+
11
+ // layout Masonry after each image loads
12
+ var imgLoad = imagesLoaded(elem);
13
+ imgLoad.on('progress', function (instance, image) {
14
+ msnry.layout();
15
+ });
16
+ } catch (err) {
17
+ if (err instanceof ReferenceError) {
18
+ // Do nothing, Masonry is defined only in the gallery page
19
+ } else {
20
+ throw err;
21
+ }
22
+ }
@@ -10,16 +10,6 @@ document.addEventListener("DOMContentLoaded", function(event) {
10
10
  menu.classList.toggle('hide');
11
11
  });
12
12
 
13
- /*
14
- * Display the navbar back to normal after resize
15
- */
16
- window.addEventListener('resize', function() {
17
- var w = window.innerWidth;
18
- if (w > 320) {
19
- menu.removeAttribute('style');
20
- }
21
- });
22
-
23
13
  /*
24
14
  * Make the header images move on scroll
25
15
  */
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.5.3
4
+ version: 0.6.3
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: 2018-05-10 00:00:00.000000000 Z
12
+ date: 2018-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -92,6 +92,7 @@ extra_rdoc_files: []
92
92
  files:
93
93
  - LICENSE
94
94
  - README.md
95
+ - _includes/blog.html
95
96
  - _includes/disqus.html
96
97
  - _includes/footer.html
97
98
  - _includes/gallery.html
@@ -100,8 +101,9 @@ files:
100
101
  - _includes/navbar.html
101
102
  - _includes/portfolio.html
102
103
  - _includes/post_nav.html
104
+ - _includes/share_buttons.html
103
105
  - _includes/tags_list.html
104
- - _layouts/bootstrap.html
106
+ - _layouts/custom.html
105
107
  - _layouts/default.html
106
108
  - _layouts/feed.xml
107
109
  - _layouts/home.html
@@ -120,6 +122,7 @@ files:
120
122
  - _sass/includes/_navbar.scss
121
123
  - _sass/includes/_portfolio.scss
122
124
  - _sass/includes/_post_nav.scss
125
+ - _sass/includes/_share_buttons.scss
123
126
  - _sass/layouts/_index.scss
124
127
  - _sass/layouts/_page.scss
125
128
  - _sass/layouts/_posts.scss
@@ -127,9 +130,12 @@ files:
127
130
  - _sass/layouts/_tags.scss
128
131
  - _sass/type-on-strap.scss
129
132
  - assets/css/.DS_Store
133
+ - assets/css/bootstrap-iso.less
130
134
  - assets/css/main.scss
131
135
  - assets/css/vendor/.DS_Store
136
+ - assets/css/vendor/bootstrap-iso.css
132
137
  - assets/css/vendor/bootstrap-iso.min.css
138
+ - assets/css/vendor/bootstrap.css
133
139
  - assets/css/vendor/font-awesome.min.css
134
140
  - assets/css/vendor/katex.min.css
135
141
  - assets/data/search.json
@@ -225,10 +231,11 @@ files:
225
231
  - assets/fonts/glyphicons-halflings-regular.woff
226
232
  - assets/fonts/glyphicons-halflings-regular.woff2
227
233
  - assets/js/.DS_Store
228
- - assets/js/katex_init.js
229
234
  - assets/js/main.min.js
230
- - assets/js/masonry_init.js
231
- - assets/js/navbar.js
235
+ - assets/js/partials/.DS_Store
236
+ - assets/js/partials/katex_init.js
237
+ - assets/js/partials/masonry_init.js
238
+ - assets/js/partials/navbar.js
232
239
  - assets/js/vendor/.DS_Store
233
240
  - assets/js/vendor/imagesloaded.min.js
234
241
  - assets/js/vendor/katex.min.js
@@ -254,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
261
  version: '0'
255
262
  requirements: []
256
263
  rubyforge_project:
257
- rubygems_version: 2.6.14
264
+ rubygems_version: 2.5.2.3
258
265
  signing_key:
259
266
  specification_version: 4
260
267
  summary: A simple and responsive jekyll theme template
@@ -1,33 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <!-- Bootstrap-3.3.7 isolation CSS -->
6
- <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/assets/css/vendor/bootstrap-iso.min.css">
7
-
8
- <article {% if page.feature-img %}class="feature-image" {% endif %}>
9
- <header id="main" style="background-image: url('{{ site.baseurl }}/{{ page.feature-img }}')">
10
- <h1 class="title">{{ page.title }}</h1> {% if page.subtitle %}
11
- <h2 class="subtitle">{{ page.subtitle }}</h2>{% endif %}
12
- </header>
13
-
14
- {% if page.description %}
15
- <section class="post-content">
16
- {{ page.description }}
17
- </section>
18
- {% endif %}
19
-
20
- <!-- Bootstrap will work within this div -->
21
- <section>
22
- <div class="bootstrap-iso">
23
- <div class="col-md-1"></div>
24
- <div class="col-md-10 centered">
25
- {{ content }}
26
- </div>
27
- <div class="col-md-1"></div>
28
- </div>
29
- </section>
30
-
31
-
32
-
33
- </article>
@@ -1,14 +0,0 @@
1
- // init Masonry
2
- var elem = document.querySelector('.grid');
3
- var msnry = new Masonry( elem, {
4
- itemSelector: '.grid-item',
5
- columnWidth: '.grid-sizer',
6
- gutter: '.gutter-sizer',
7
- percentPosition: true
8
- });
9
-
10
- // layout Masonry after each image loads
11
- var imgLoad = imagesLoaded( elem );
12
- imgLoad.on( 'progress', function( instance, image ) {
13
- msnry.layout();
14
- });