jekyll-readthedocs 0.3.2 → 0.4.0

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: 30f994066a2aec8d7a30a6a54294d3b229a9d86ab06d26f91af11cb73a0102e7
4
- data.tar.gz: dc5f20b3192831e0617384ebd8ba741596aa2fef3f28e9c60ddf45defcc2ae43
3
+ metadata.gz: c594339191efe609df41ccd419ea71bb2b1602b92053caca14b9dd4bb3c0b4ae
4
+ data.tar.gz: b7d534f61bb8e7312c7d03c55f9f900bad19c54394a76d2bf25230aebae71202
5
5
  SHA512:
6
- metadata.gz: 208bf423bff6e525981902610daafe0d4ee8a8c0d3ca774dbcff6216b54e9af92d8cbcfc192cd8506c83c7e0687bf1a82e6666bc00aaef894c069a21e7463b28
7
- data.tar.gz: 1970e0c4683ccf3559928c4e5b90c2ed3916b3866ea34ad42db4f122fc2737399d3467d17bd242056b181e625d0337e2af324ab8835a5e79f5a1a98a5d76ac10
6
+ metadata.gz: c42c77a00db4ec2232180a49ec9260b64397dc91dcb91fab0fab1a65aa55dd83a7883550292f71c6d0e17b544b705c384b01324fcfff2032f786c0075f404a5a
7
+ data.tar.gz: dee0f1000eccb7bfdace45bb6b414ae74b3deefc74b32b4b7ef079ba0abbdbca28d1a7ac37ba15e39ab5bc25ad259bba3047b97ebcf7a5395ce04b512e306ca2
@@ -13,19 +13,26 @@ layout: default
13
13
  <h2 class="post-list-heading">{{ page.list_title | default: "" }}</h2>
14
14
  <ul class="post-list">
15
15
  {%- for post in site.posts -%}
16
- <li>
17
- {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
18
- <span class="post-meta">{{ post.date | date: date_format }}</span>
19
- <h3>
20
- <a class="post-link" href="{{ post.url | relative_url }}">
21
- {{ post.title | escape }}
22
- </a>
23
- </h3>
24
- {%- if site.show_excerpts -%}
25
- {{ post.excerpt }}
26
- {%- endif -%}
27
- </li>
28
- {%- endfor -%}
16
+ <li>
17
+ {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
18
+ <span class="post-meta">{{ post.date | date: date_format }}</span>
19
+ <h3>
20
+ <a class="post-link" href="{{ post.url | relative_url }}">
21
+ {{ post.title | escape }}
22
+ </a>
23
+ </h3>
24
+ {%- if site.show_excerpts -%}
25
+ {{ post.excerpt }}
26
+ {%- endif -%}
27
+ {%- if post.image -%}
28
+ <div class="post-image">
29
+ <a href="{{ post.url | relative_url }}">
30
+ <img src="{{ post.image | absolute_url}}" alt="{{ post.title }}">
31
+ </a>
32
+ </div>
33
+ {%- endif -%}
34
+ </li>
35
+ {%- endfor -%}
29
36
  </ul>
30
37
 
31
38
  <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
@@ -417,3 +417,19 @@
417
417
 
418
418
 
419
419
  }
420
+
421
+
422
+ /**
423
+ * Post image
424
+ */
425
+ .post-image {
426
+ width: 100%;
427
+ max-height: 200px;
428
+ overflow: hidden;
429
+ -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
430
+ mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
431
+ }
432
+
433
+ .post-image img {
434
+ width: 100%;
435
+ }
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-readthedocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timothée Mazzucotelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-28 00:00:00.000000000 Z
11
+ date: 2019-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -92,6 +92,7 @@ files:
92
92
  - _sass/minima/_base.scss
93
93
  - _sass/minima/_layout.scss
94
94
  - _sass/minima/_syntax-highlighting.scss
95
+ - assets/jekyll.png
95
96
  - assets/main.scss
96
97
  - assets/minima-social-icons.svg
97
98
  - assets/search.json
@@ -115,8 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
116
  - !ruby/object:Gem::Version
116
117
  version: '0'
117
118
  requirements: []
118
- rubyforge_project:
119
- rubygems_version: 2.7.6
119
+ rubygems_version: 3.0.2
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: A ReadTheDocs theme based on minima.