domain-jekyll 1.2.1 → 1.3.0

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
  SHA256:
3
- metadata.gz: 4ef75869c60979034e114c8d383a35bba9aa57c7f874464557cd20de29f0f36b
4
- data.tar.gz: 20326c16d046f87ad19838013899a022bf95f67fac64b50ef13bbd880bdaab04
3
+ metadata.gz: e4cbc2a56c167c10a0b1c9c6b6282729845fd5a525eef1d9530931fcdafb1cfe
4
+ data.tar.gz: 5edf25004405c83602f0b249feff653fbb2f155bd9a58d0fd51eccfdd2bd3cac
5
5
  SHA512:
6
- metadata.gz: 0e75223508a28956967b812262aac868fedd086bc52666bd2b3e7204ef37b37f530e659ceb248928da6e462f9cebca8840fb468ec2901485f92a186c797456e5
7
- data.tar.gz: 07c4934c8477a50bab6ebf104cca250a48d7fa5f5c5c1987ce5424fb6ad845a7db954ec754a1c94eb4249bc2cef4cd00092a3269b1b00e91ecb0fc9094d26e54
6
+ metadata.gz: ec0a214a90f2762deca283e35914a4f04a7c66a8962c8096d4e416ab8a83b80a859a7fac5e51a97c996b6477341065fe7534bc76f5a2abce48c12a910bf8f80d
7
+ data.tar.gz: 8d706bdd34b072ec5c5365cde3e6c88003177f309159d25f6b7ff7c07ac28254536f56ac39d6e601fcf3f0740d1513ab688d91feac7f6c253102fe03ee97e89a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,4 @@
1
+ ## [1.3.0](https://github.com/lumunix/domain/releases/tag/1.3.0)
1
2
  ## [1.2.1](https://github.com/lumunix/domain/releases/tag/1.2.1)
2
3
  ## [1.2.0](https://github.com/lumunix/domain/releases/tag/1.2.0)
3
4
  ## [1.1.0](https://github.com/lumunix/domain/releases/tag/1.1.0)
@@ -136,4 +136,5 @@
136
136
  {%- endif -%}
137
137
  </div>
138
138
  </div>
139
+ {%- include PreviousNext.html -%}
139
140
  </div>
@@ -1,7 +1,7 @@
1
1
  <header>
2
2
  <div class="main-site-subheader menu disable-select">
3
3
  <a class="menu-item" href="{{site.baseurl}}/">
4
- <svg class="menu-item-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 25 25" fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
4
+ <svg class="menu-item-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 25 25" fill="none" stroke="#000000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
5
5
  <path d="M20 9v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9"/>
6
6
  <path d="M9 22V12h6v10M2 10.6L12 2l10 8.6"/>
7
7
  </svg>
@@ -12,41 +12,48 @@
12
12
  xmlns="http://www.w3.org/2000/svg">
13
13
  <path
14
14
  d="M20.9777 21.6138V19.6138C20.9777 18.553 20.5563 17.5356 19.8061 16.7854C19.056 16.0353 18.0386 15.6138 16.9777 15.6138H8.97768C7.91682 15.6138 6.8994 16.0353 6.14926 16.7854C5.39911 17.5356 4.97768 18.553 4.97768 19.6138V21.6138"
15
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
15
+ stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
16
16
  <path
17
17
  d="M12.9777 11.6138C15.1868 11.6138 16.9777 9.82298 16.9777 7.61385C16.9777 5.40471 15.1868 3.61385 12.9777 3.61385C10.7685 3.61385 8.97768 5.40471 8.97768 7.61385C8.97768 9.82298 10.7685 11.6138 12.9777 11.6138Z"
18
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
18
+ stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
19
19
  </svg>
20
20
  <p class="menu-item-text">About</p>
21
21
  </a>
22
22
  <a class="menu-item" href="{{site.baseurl}}/posts">
23
23
  <svg class="menu-item-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 24 25" fill="none"
24
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
24
+ stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
25
25
  <rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
26
26
  <line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line>
27
27
  <line x1="3" y1="10" x2="21" y2="10"></line>
28
28
  </svg>
29
29
  <p class="menu-item-text">Posts</p>
30
30
  </a>
31
+ <a class="menu-item" href="{{site.baseurl}}/tutorials">
32
+ <svg class="menu-item-icon" xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 24 24">
33
+ <path d="M4 17.162l-2 .838v-12.972l12-5.028v2.507l-10 4.19v10.465zm16-8.156v8.635l-8 3.352v-8.635l8-3.352zm2-3.006l-12 5.028v12.972l12-5.028v-12.972zm-14 3.697l10-4.19v-2.507l-12 5.028v12.972l2-.838v-10.465z"
34
+ stroke-width="0" stroke-linecap="round" stroke-linejoin="round"/>
35
+ </svg>
36
+ <p class="menu-item-text">Tutorials</p>
37
+ </a>
31
38
  <a class="menu-item" href="{{site.baseurl}}/tags">
32
39
  <svg class="menu-item-icon" width="18" height="19" viewBox="0 0 24 25" fill="none"
33
40
  xmlns="http://www.w3.org/2000/svg">
34
- <path d="M4 9.5H20" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
35
- <path d="M4 15.5H20" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
36
- <path d="M10 3.5L8 21.5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
37
- <path d="M16 3.5L14 21.5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
41
+ <path d="M4 9.5H20" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
42
+ <path d="M4 15.5H20" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
43
+ <path d="M10 3.5L8 21.5" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
44
+ <path d="M16 3.5L14 21.5" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
38
45
  </svg>
39
46
  <p class="menu-item-text">Tags</p>
40
47
  </a>
41
48
  <a class="menu-item" href="{{site.baseurl}}/feed.xml">
42
49
  <svg class="menu-item-icon" width="18" height="19" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
43
50
  <path d="M4 11.5C6.38695 11.5 8.67613 12.4482 10.364 14.136C12.0518 15.8239 13 18.1131 13 20.5"
44
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
51
+ stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
45
52
  <path d="M4 4.5C8.24346 4.5 12.3131 6.18571 15.3137 9.18629C18.3143 12.1869 20 16.2565 20 20.5"
46
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
53
+ stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
47
54
  <path
48
55
  d="M5 20.5C5.55228 20.5 6 20.0523 6 19.5C6 18.9477 5.55228 18.5 5 18.5C4.44772 18.5 4 18.9477 4 19.5C4 20.0523 4.44772 20.5 5 20.5Z"
49
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
56
+ stroke-width="3" stroke-linecap="round" stroke-linejoin="round" />
50
57
  </svg>
51
58
  <p class="menu-item-text">RSS</p>
52
59
  </a>
@@ -0,0 +1,14 @@
1
+ {% if page.tutorial_previous or page.tutorial_next %}
2
+ <nav class="previousnext">
3
+ {% if page.tutorial_previous %}
4
+ <a href="{{ page.tutorial_previous | relative_url }}" class="previousnext--pager">{{ "Previous" }}</a>
5
+ {% else %}
6
+ <a href="#" class="previousnext--pager disabled">{{ "Previous" }}</a>
7
+ {% endif %}
8
+ {% if page.tutorial_next %}
9
+ <a href="{{ page.tutorial_next | relative_url }}" class="previousnext--pager">{{ "Next" }}</a>
10
+ {% else %}
11
+ <a href="#" class="previousnext--pager disabled">{{ "Next" }}</a>
12
+ {% endif %}
13
+ </nav>
14
+ {% endif %}
@@ -4,7 +4,9 @@
4
4
  <body>
5
5
 
6
6
  <div class="wrapper">
7
- {{ content }}
7
+ {% assign content_ = content | replace: '<table', '<div class="table-wrapper"><table' %}
8
+ {% assign content_ = content_ | replace: '</table>', '</table></div>' %}
9
+ {{ content_ }}
8
10
  </div>
9
11
 
10
12
 
data/_layouts/Home.html CHANGED
@@ -1,4 +1,29 @@
1
1
  ---
2
- layout: Sidebar
2
+ layout: Page
3
3
  ---
4
- {% include Postlist.html %}
4
+ <div id="post-wrapper">
5
+ {% for post in paginator.posts %}
6
+ <article class="post feed-title-excerpt-block disable-select" data-url="{{site.url}}{{site.baseurl}}{{post.url}}">
7
+ {% if post.thumbnail %}
8
+ <a class="post-thumbnail" style="background-image: url({{"" | prepend: site.baseurl | append : post.thumbnail}})" href="{{post.url | prepend: site.baseurl}}"></a>
9
+ {% else %}
10
+ {% endif %}
11
+ <div class="post-content">
12
+ <h2 class="post-title"><a href="{{post.url | prepend: site.baseurl}}">{{post.title}}</a></h2>
13
+ <p>{{ post.content | strip_html | truncatewords: 60 }}</p>
14
+ <span class="post-date">{{post.date | date: '%Y, %b %d'}}&nbsp;&nbsp;&nbsp;—&nbsp;</span>
15
+ <span class="post-words">{% capture words %}{{ post.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
16
+
17
+ </div>
18
+ </article>
19
+ {% endfor %}
20
+ </div>
21
+
22
+ {% case site.preferences.pagination.system %}
23
+ {% when "infinitescroll" %}
24
+ {% include InfiniteScroll.html %}
25
+ {% when "pagination" %}
26
+ {% include Pagination.html %}
27
+ {% else %}
28
+ {% include InfiniteScroll.html %}
29
+ {% endcase %}
data/_layouts/Post.html CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: Sidebar
2
+ layout: Page
3
3
  ---
4
4
  <article class="article-page">
5
5
  <div class="page-content">
@@ -0,0 +1,53 @@
1
+ ---
2
+ layout: Page
3
+ ---
4
+ <article class="article-page">
5
+ <div class="page-content">
6
+ {% if page.header %}
7
+ <div class="page-header-image">
8
+ <figure>
9
+ <img class="page-image" src={{ "" | prepend: site.baseurl | append : page.header}} alt="{{page.title}}">
10
+ </figure>
11
+ </div> <!-- End Page Cover Image -->
12
+ {% else %}
13
+ {% endif %}
14
+ <header class="header-page">
15
+ <h1 class="page-title">{{page.title}}</h1>
16
+ </header>
17
+ {%- include Content.html -%}
18
+ <div id="post-wrapper">
19
+ {% for tag in site.tags %}
20
+ {%- if tag[0] == page.tutorial_tag -%}
21
+ {% for post in tag[1] %}
22
+ <article class="post feed-title-excerpt-block disable-select" data-url="{{site.url}}{{site.baseurl}}{{post.url}}">
23
+ {% if post.thumbnail %}
24
+ <a class="post-thumbnail" style="background-image: url({{"" | prepend: site.baseurl | append : post.thumbnail}})" href="{{post.url | prepend: site.baseurl}}"></a>
25
+ {% else %}
26
+ {% endif %}
27
+ <div class="post-content">
28
+ <h2 class="post-title"><a href="{{post.url | prepend: site.baseurl}}">{{post.title}}</a></h2>
29
+ <p>{{ post.content | strip_html | truncatewords: 60 }}</p>
30
+ <span class="post-date">{{post.date | date: '%Y, %b %d'}}&nbsp;&nbsp;&nbsp;—&nbsp;</span>
31
+ <span class="post-words">{% capture words %}{{ post.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
32
+ </div>
33
+ </article>
34
+ {% endfor %}
35
+ {%- endif -%}
36
+ {% endfor %}
37
+ </div>
38
+
39
+ {%- include Footer.html -%}
40
+
41
+
42
+ {% if site.preferences.author.enabled %}
43
+ {% assign author = site.authors[page.author] %}
44
+ {% if page.author %}
45
+ {% include Author.html %}
46
+ {% endif %}
47
+ {% endif %}
48
+
49
+ {% if page.comments %}
50
+ {%- include Comments.html -%}
51
+ {% endif %}
52
+ </div> <!-- End Page Content -->
53
+ </article> <!-- End Article Page -->
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: Page
3
+ ---
4
+ <div id="post-wrapper">
5
+ {% for tutorial in site.tutorials %}
6
+ <article class="post feed-title-excerpt-block disable-select" data-url="{{site.url}}{{site.baseurl}}{{tutorial.url}}">
7
+ {% if tutorial.thumbnail %}
8
+ <a class="post-thumbnail" style="background-image: url({{"" | prepend: site.baseurl | append : tutorial.thumbnail}})" href="{{tutorial.url | prepend: site.baseurl}}"></a>
9
+ {% else %}
10
+ {% endif %}
11
+ <div class="post-content">
12
+ <h2 class="post-title"><a href="{{tutorial.url | prepend: site.baseurl}}">{{tutorial.title}}</a></h2>
13
+ <p>{{ tutorial.content | strip_html | truncatewords: 60 }}</p>
14
+ <span class="post-date">{{tutorial.date | date: '%Y, %b %d'}}&nbsp;&nbsp;&nbsp;—&nbsp;</span>
15
+ <span class="post-words">{% capture words %}{{ tutorial.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
16
+
17
+ </div>
18
+ </article>
19
+ {% endfor %}
20
+ </div>
@@ -54,7 +54,6 @@
54
54
 
55
55
  .content-box {
56
56
  padding: 20px 10px;
57
- display: flex;
58
57
  flex-direction: row;
59
58
  flex-wrap: wrap;
60
59
  align-items: stretch;
@@ -0,0 +1,108 @@
1
+ /* ==========================================================================
2
+ PreviousNext
3
+ ========================================================================== */
4
+ /* Previous Next Page Buttons */
5
+ .previousnext {
6
+ float: left;
7
+ margin-bottom: 1em;
8
+ padding-bottom: 1em;
9
+ width: 100%;
10
+
11
+ ul {
12
+ margin: 0;
13
+ padding: 0;
14
+ list-style-type: none;
15
+ font-family: $font-family;
16
+ }
17
+
18
+ li {
19
+ display: block;
20
+ float: left;
21
+ margin-left: -1px;
22
+
23
+ a {
24
+ display: block;
25
+ margin-bottom: 0.25em;
26
+ padding: 0.5em 1em;
27
+ font-family: $font-family;
28
+ font-size: 14px;
29
+ font-weight: bold;
30
+ line-height: 1.5;
31
+ text-align: center;
32
+ text-decoration: none;
33
+ color: $primary-text-color;
34
+ border: 1px solid mix(#000, $footer-border-color, 25%);
35
+ border-radius: 0;
36
+
37
+ &:hover {
38
+ background-color: $quaternary-bg-color;
39
+ }
40
+
41
+ &.current,
42
+ &.current.disabled {
43
+ color: #fff;
44
+ background: $button-hover-color;
45
+ }
46
+
47
+ &.disabled {
48
+ color: rgba($primary-text-color, 0.5);
49
+ pointer-events: none;
50
+ cursor: not-allowed;
51
+ }
52
+ }
53
+
54
+ &:first-child {
55
+ margin-left: 0;
56
+
57
+ a {
58
+ border-top-left-radius: 4px;
59
+ border-bottom-left-radius: 4px;
60
+ }
61
+ }
62
+
63
+ &:last-child {
64
+ a {
65
+ border-top-right-radius: 4px;
66
+ border-bottom-right-radius: 4px;
67
+ }
68
+ }
69
+ }
70
+
71
+ /* next/previous buttons */
72
+ &--pager {
73
+ display: block;
74
+ padding: 1em 2em;
75
+ float: left;
76
+ width: 50%;
77
+ font-family: $font-family;
78
+ font-size: 1em;
79
+ font-weight: bold;
80
+ text-align: center;
81
+ text-decoration: none;
82
+ color: $primary-text-color;
83
+ border: 1px solid mix(#000, $footer-border-color, 25%);
84
+ border-radius: 4px;
85
+
86
+ &:hover {
87
+ background-color: $quaternary-bg-color;
88
+ //@include yiq-contrasted($primary-text-color);
89
+ }
90
+
91
+ &:first-child {
92
+ border-top-right-radius: 0;
93
+ border-bottom-right-radius: 0;
94
+ }
95
+
96
+ &:last-child {
97
+ margin-left: -1px;
98
+ border-top-left-radius: 0;
99
+ border-bottom-left-radius: 0;
100
+ }
101
+
102
+ &.disabled {
103
+ color: rgba($primary-text-color, 0.5);
104
+ pointer-events: none;
105
+ cursor: not-allowed;
106
+ }
107
+ }
108
+ }
@@ -0,0 +1,18 @@
1
+ /* ==========================================================================
2
+ Tables
3
+ ========================================================================== */
4
+ .table-wrapper {
5
+ display: block;
6
+ width: 100%;
7
+ max-width: 100%;
8
+ margin-bottom: 24px;
9
+ overflow-x: auto;
10
+ border-radius: 4px;
11
+ //box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
12
+ }
13
+
14
+ table {
15
+ display: table;
16
+ min-width: 100%;
17
+ border-collapse: separate;
18
+ }
data/_sass/domain.scss CHANGED
@@ -23,3 +23,5 @@
23
23
  @import "domain/util";
24
24
  @import "domain/author";
25
25
  @import "domain/embed";
26
+ @import "domain/previousnext";
27
+ @import "domain/tables";
data/assets/.DS_Store CHANGED
Binary file
@@ -1,18 +1,18 @@
1
1
  /********************************************************************************************
2
2
  * MIT License
3
- *
3
+ *
4
4
  * Copyright (c) 2020 Raghuveer S
5
- *
5
+ *
6
6
  * Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  * of this software and associated documentation files (the "Software"), to deal
8
8
  * in the Software without restriction, including without limitation the rights
9
9
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
10
  * copies of the Software, and to permit persons to whom the Software is
11
11
  * furnished to do so, subject to the following conditions:
12
- *
12
+ *
13
13
  * The above copyright notice and this permission notice shall be included in all
14
14
  * copies or substantial portions of the Software.
15
- *
15
+ *
16
16
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
17
  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
18
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -20,14 +20,14 @@
20
20
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
- *
24
- *
23
+ *
24
+ *
25
25
  * File: ContextMenu.js
26
26
  * Author@Raghuveer S
27
27
  *
28
28
  * This allows us to override the default contextmenu provided by the browser and replace
29
29
  * it with a custom context menu containing options to view related files and files
30
- * that link back to it(a.k.a backlinks).
30
+ * that link back to it(a.k.a backlinks).
31
31
  *********************************************************************************************/
32
32
 
33
33
  (function (sj) {
@@ -54,7 +54,7 @@
54
54
  });
55
55
  };
56
56
 
57
- /* Helper function to check if the click event happened
57
+ /* Helper function to check if the click event happened
58
58
  inside the specfied css element or outside */
59
59
  function clickInsideElement(e, className) {
60
60
  var el = e.srsElement || e.target;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domain-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lumunix
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-25 00:00:00.000000000 Z
11
+ date: 2022-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: webrick
@@ -161,7 +161,7 @@ files:
161
161
  - _includes/InfiniteScroll.html
162
162
  - _includes/LinkLibrary.md
163
163
  - _includes/Pagination.html
164
- - _includes/Postlist.html
164
+ - _includes/PreviousNext.html
165
165
  - _includes/Related.html
166
166
  - _includes/TwitterEmbed.html
167
167
  - _includes/Utterances.html
@@ -174,6 +174,8 @@ files:
174
174
  - _layouts/Posts.html
175
175
  - _layouts/Sidebar.html
176
176
  - _layouts/Tags.html
177
+ - _layouts/Tutorial.html
178
+ - _layouts/Tutorials.html
177
179
  - _sass/domain.scss
178
180
  - _sass/domain/_author.scss
179
181
  - _sass/domain/_backtotop.scss
@@ -187,9 +189,11 @@ files:
187
189
  - _sass/domain/_media.scss
188
190
  - _sass/domain/_normalize.scss
189
191
  - _sass/domain/_pagination.scss
192
+ - _sass/domain/_previousnext.scss
190
193
  - _sass/domain/_related.scss
191
194
  - _sass/domain/_search.scss
192
195
  - _sass/domain/_sidenote.scss
196
+ - _sass/domain/_tables.scss
193
197
  - _sass/domain/_tag.scss
194
198
  - _sass/domain/_toc.scss
195
199
  - _sass/domain/_tooltip.scss
@@ -1,26 +0,0 @@
1
- <div id="post-wrapper">
2
- {% for post in paginator.posts %}
3
- <article class="post feed-title-excerpt-block disable-select" data-url="{{site.baseurl}}{{post.url}}">
4
- {% if post.thumbnail %}
5
- <a class="post-thumbnail" style="background-image: url({{"" | prepend: site.baseurl | append : post.thumbnail}})" href="{{post.url | prepend: site.baseurl}}"></a>
6
- {% else %}
7
- {% endif %}
8
- <div class="post-content">
9
- <h2 class="post-title"><a href="{{post.url | prepend: site.baseurl}}">{{post.title}}</a></h2>
10
- <p>{{ post.content | strip_html | truncatewords: 60 }}</p>
11
- <span class="post-date">{{post.date | date: '%Y, %b %d'}}&nbsp;&nbsp;&nbsp;—&nbsp;</span>
12
- <span class="post-words">{% capture words %}{{ post.content | number_of_words }}{% endcapture %}{% unless words contains "-" %}{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}{% endunless %}</span>
13
-
14
- </div>
15
- </article>
16
- {% endfor %}
17
- </div>
18
-
19
- {% case site.preferences.pagination.system %}
20
- {% when "infinitescroll" %}
21
- {% include InfiniteScroll.html %}
22
- {% when "pagination" %}
23
- {% include Pagination.html %}
24
- {% else %}
25
- {% include InfiniteScroll.html %}
26
- {% endcase %}