materialize-jekyll 1.0 → 1.0.1

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: 86c03eb6ed231eb24744db1f86107692e1beeed2
4
- data.tar.gz: 1e756908dfbdbe140ab1607a6ffa236d2e7ec491
3
+ metadata.gz: aa1da151c13ef4254b7c00503a794d53f85e4750
4
+ data.tar.gz: a7e9e56a5030e856d530fd23ab93261cf37dcefc
5
5
  SHA512:
6
- metadata.gz: 11876c1998cd3f75762c81935d707dceae251956343d443b772ac4fbb753d3454bb7b037a5e9b8d11d1b32423611378aecb9ef852f9f074fab554428d2eb4250
7
- data.tar.gz: 7f25c9b5754fb40f8fb957c0204e855e73eff1d3ef135cd7a878ab0a3a88734c1ac257baa21ad925648257c7941794ec8992f5e9950abf26006b7c0d25610cd6
6
+ metadata.gz: ceea78d075bec8037dec50b3bd4d59a8911c82db46247819754cda32abade963b42a926a283a62d62eee64c26d904537bac03c9df87d6b070855f61e8ea69083
7
+ data.tar.gz: d038e95beabd065801069d95177b4a78da7644d4883e626516a8bf3cc8e3f2ea7d3c9b28666be02fbd48675d0bf11f457df6f99d9d2322daa339e6c360186b64
@@ -14,6 +14,7 @@
14
14
  <script src="https://unpkg.com/scrollreveal/dist/scrollreveal.min.js"></script>
15
15
  <script src="{{ "/assets/js/vendor/masonry.pkgd.min.js" | prepend: site.baseurl }}"></script>
16
16
  <script src="{{ "/assets/js/init.js" | prepend: site.baseurl }}"></script>
17
- </body>
17
+ {% include stats.html %}
18
+ </body>
18
19
  </html>
19
20
 
@@ -0,0 +1,7 @@
1
+ {% assign words = content | number_of_words %}
2
+
3
+ {% if words < 360 %}
4
+ {% assign minutesText = '1 min de leitura' %}
5
+ {% else %}
6
+ {% assign minutesText = words | divided_by:180 | append: ' mins de leitura' %}
7
+ {% endif %}
@@ -0,0 +1,10 @@
1
+ <script>
2
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6
+
7
+ ga('create', '{{ site.google_analytics }}', 'auto');
8
+ ga('send', 'pageview');
9
+
10
+ </script>
@@ -39,7 +39,7 @@ layout: default
39
39
  <span class="grey-text text-lighten-1">{% include date.html date=post.date %}</span>
40
40
  <a class="post-link" href="{{ post.url | prepend: site.baseurl }}"><span class="flow-text card-title"><b>{{ post.title }}</b></span></a>
41
41
  <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
42
- <p class="post-description">{{ post.introduction }}</p>
42
+ <p class="post-description">{{ post.description }}</p>
43
43
  </a>
44
44
  <br>
45
45
  <div class="tags">
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
+ {% include minutes-to-read.html %}
4
5
 
5
6
  <header id="top-bar" class="main-top"></header>
6
7
  <div class="container container-main">
@@ -8,7 +9,7 @@ layout: default
8
9
  <div class="row">
9
10
  <div class="col s12 m12">
10
11
  <div class="col s10 offset-s1 " >
11
- <p class="grey-text text-lighten-1 valign-wrapper"><i class="material-icons">today </i> &nbsp; {% include date.html date=page.date %}</p>
12
+ <p class="grey-text text-lighten-1 valign-wrapper"><i class="material-icons">today </i> &nbsp; {% include date.html date=page.date %} &nbsp;&nbsp;<i class="material-icons">access_time </i> &nbsp;{{ minutesText }}</p>
12
13
  <h2 class="post-title">{{ page.title }}</h2>
13
14
  <p class="flow-text grey-text text-lighten-1">{{ page.introduction }}</p>
14
15
  <img class="center-align" style="width: 100%;" src="{{ page.image }}">
@@ -19,6 +19,7 @@
19
19
  position: relative;
20
20
  display: inline-block;
21
21
  padding: 50px 0 0 0;
22
+ max-width: 100%;
22
23
  }
23
24
 
24
25
  .post > .row {
@@ -32,3 +33,17 @@
32
33
  section {
33
34
  margin-top: 25px;
34
35
  }
36
+
37
+ .blog-post-img {
38
+ max-width: 100%;
39
+ margin: 0 auto;
40
+ display: block;
41
+ text-align: center;
42
+ }
43
+
44
+ @media only screen and (max-width : 425px) {
45
+
46
+ .blog-post-img img {
47
+ width: 100%;
48
+ }
49
+ }
@@ -204,21 +204,42 @@
204
204
  }
205
205
  .highlight {
206
206
  width: 150%;
207
- padding: 10px 20px 10px 140px;
207
+ padding: 10px 100px 10px 140px;
208
208
  position: relative;
209
209
  left: -12%;
210
210
  right: 0%;
211
211
  margin: 0 auto;
212
212
  color: #f8f8f2;
213
213
  background-color: #222;
214
+ overflow-x: scroll;
215
+ overflow-y: hidden;
216
+ white-space: nowrap;
217
+ -webkit-overflow-scrolling: touch;
214
218
  }
215
219
 
216
220
  @media only screen and (max-width : 600px) {
217
221
  .highlight{
218
- padding: 10px 20px 10px 35px;
222
+ padding: 10px 100px 10px 35px;
219
223
  left: -14%;
220
224
  }
221
225
  }
226
+
227
+ @media only screen and (max-width : 1200px) {
228
+ .highlight{
229
+ padding: 10px 100px 10px 20px;
230
+ left: -14%;
231
+ }
232
+ }
233
+
234
+
235
+ .highlight pre {
236
+ flex: 0 0 auto;
237
+ }
238
+ code span {
239
+ display: inline-block;
240
+ flex: 0 0 auto;
241
+
242
+ }
222
243
  .highlighter-rouge{
223
244
  background-color: #eee;
224
245
  }
Binary file
@@ -31,8 +31,9 @@
31
31
  return $("[data-tag="+tag+"]", this).size();
32
32
  });
33
33
  }
34
- $cards.toggle();
35
- $container.masonry('layout').masonry();
34
+ $cards.fadeToggle("800", "jswing", function(){
35
+ $container.masonry('layout').masonry();
36
+ });
36
37
  });
37
38
 
38
39
  // Scroll Reveal
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: materialize-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Presumido
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-26 00:00:00.000000000 Z
11
+ date: 2017-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -80,8 +80,10 @@ files:
80
80
  - _includes/date.html
81
81
  - _includes/footer.html
82
82
  - _includes/header.html
83
+ - _includes/minutes-to-read.html
83
84
  - _includes/navbar.html
84
85
  - _includes/share.html
86
+ - _includes/stats.html
85
87
  - _layouts/compress.html
86
88
  - _layouts/default.html
87
89
  - _layouts/home.html