jekyll-theme-scrawl 0.1.19 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18523d1c2526af9316973979a5cc9729a30f106b144ae1a5f699a2dddf2f407c
4
- data.tar.gz: c397ee7846b159ce11e9c71d696ae03567e18709e28dfc61c163510b0dccaf5a
3
+ metadata.gz: f916a25a843b1003c42d29c8b28cabff05f8f8f4331b51f2a6acabe9ffbeac2a
4
+ data.tar.gz: 599ee3bc6312accf8cf998620ed8d56310c1673e19ea7779c162ca84d4c6e6d3
5
5
  SHA512:
6
- metadata.gz: dca3b4fc4853c398261dbff3742403f0fe31226cfe570c23aaad8481a6ca2f5c62482adb904385ef77c2281d8bed90d5ffe28cc3a04d7ff852cf1cf61caa829f
7
- data.tar.gz: b61961b0b40b16589a3af022db4ebbdbd2f6c97a569de85d84d6c22a58bb4f72c2e0530525e6279ddd66e8a603e1c64979b0de3409aae9585cde1c9cc9a6ae87
6
+ metadata.gz: 9cdba938541df83215ce6f50c37dad69b7f16faa42ddb1bdfbf58a184c6ee6513d2bdefa22cdd72c1a5d2c35842d66e4b95f30015ce6b667d85ab76609b01fc3
7
+ data.tar.gz: '049f144eca3034f2469c3fe518dd6ba9641f475d9bceb9aba3d000ca222435adc91da6bb32bbc696d30f4597dcb030e60c91de935ac0138a44e1047ac37dbd90'
data/_layouts/page.html CHANGED
@@ -6,6 +6,12 @@ layout: base
6
6
  {{ '# ' | append: page.title | markdownify }}
7
7
  {% endif %}
8
8
 
9
+ {% if page.reading_time != false %}
10
+ {% assign word_count = content | strip_html | number_of_words %}
11
+ {% assign reading_time = word_count | divided_by: 240 | ceil %}
12
+ <div class="reading-time">{{ reading_time }} minute read</div>
13
+ {% endif %}
14
+
9
15
  {% if page.summary and page.summary != '' %}
10
16
  {{ page.summary | markdownify }}
11
17
  {% endif %}
data/_sass/scrawl.scss CHANGED
@@ -59,6 +59,13 @@ footer p:first-child {
59
59
  padding-top: 15px;
60
60
  }
61
61
 
62
+ .reading-time {
63
+ font-size: small;
64
+ font-style: italic;
65
+ margin-bottom: 15px;
66
+ color: #999999;
67
+ }
68
+
62
69
  .toc {
63
70
  margin-bottom: 20px;
64
71
  padding: 20px 25px 5px 25px;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-scrawl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Light
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-13 00:00:00.000000000 Z
11
+ date: 2018-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-pages