jekyll-theme-endless 0.8.0 → 0.9.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: 99c5f394bfbc02b2fa02493370db94347dadb24170d6541d1891c5b339b2ff0c
4
- data.tar.gz: b290bca5d1ceee9294e1122b0daaf38d7f31f20725f010475b70c6d02dfc9215
3
+ metadata.gz: c44a8b0b77f57bf3ef8c3107d45d5993590b951bafe7123b7a3d43aff1755e0f
4
+ data.tar.gz: ec822eb3c232ed9e4bceae9459c9ec6d0dc93c366269bf88ce046a61bc17d49e
5
5
  SHA512:
6
- metadata.gz: a0c4aa66130770fcaa502efe309d612dd037c202b41783de088a912515f8ddb8201a6ef59b11243d415848ed90e82b5bf72f037056ff79e4150a3b8c459ea902
7
- data.tar.gz: 46a1727302163e879e65ada7b88b688081509decaf7ca21a4c0d344ed9ecafb506c58a9f884546aa04db5c1d91951936c26f6d3c40c7b95b3f467656785ba3ca
6
+ metadata.gz: 2eb544cacc56b869f3d57935b580d824b11116649541ae2c4b508bd30f245a8e4a933719946f8c46fdcde7cc782e61a4fbaa6ab52f59b016202696d41a484e7e
7
+ data.tar.gz: 3a4fd8c1fa675898414c9618d0f4f91dded12bde8bb51e91525a96291b34452fe84f09573dc9c216fd29b1341c54661f3e4ad27916e7693797e0644905b5a938
@@ -162,6 +162,8 @@ Layout of page-content with a list of blog posts at the end.
162
162
 
163
163
 
164
164
  `_layouts/page-tag.html`::
165
+ +
166
+ --
165
167
  Layout of pages containing a list of those posts being tagged with a given tag.
166
168
  This file is required by the `generate-tagpages`-plugin.
167
169
 
@@ -173,6 +175,7 @@ The content can be for example the following:
173
175
  ----
174
176
  include::_layouts/page-tag.html[]
175
177
  ----
178
+ --
176
179
 
177
180
 
178
181
  `_layouts/post.html`::
@@ -239,8 +242,13 @@ This can be useful for your 404 page, which should be generated by Jekyll, but n
239
242
 
240
243
 
241
244
  `_includes/function_list-posts.html`::
242
- Generates the code containing links to each blog-post.
243
- The text of the link is the title of the post.
245
+ Generates a list containing blog posts.
246
+
247
+
248
+ `_includes/function_post-in-list-short.html`::
249
+ Generates the code to display a single post in the list of blog posts.
250
+ An entry consists of the title of the blog post linked to the article.
251
+ If a permalink is configured for the article, this is indicated by an icon.
244
252
 
245
253
 
246
254
  `_includes/function_tag-cloud.html`::
@@ -1,13 +1,22 @@
1
1
  {% comment %}
2
2
  List of blog-posts.
3
+ Expects an array of post objects in the parameter `postlist`.
4
+
5
+ Call via:
6
+ ----
7
+ {% include function_list-posts.html
8
+ postlist=POSTLIST
9
+ %}
10
+ ----
3
11
  {% endcomment %}
4
12
 
5
13
  <ul>
6
- {% for current_post in site.posts %}
14
+ {% for current_post in include.postlist %}
7
15
  <li>
8
- {{ current_post.date | date: "%Y-%m-%d" }}: <a href="{{ current_post.url }}">{{ current_post.title }}</a>
16
+ {% include function_post-in-list-short.html
17
+ post = current_post
18
+ %}
9
19
  </li>
10
20
  {% endfor %}
11
21
  </ul>
12
22
 
13
-
@@ -0,0 +1,25 @@
1
+ {% comment %}
2
+ Processes a single post for display in the list of articles.
3
+ Expects a post object as a parameter.
4
+
5
+ Call via:
6
+ ----
7
+ <li>
8
+ {% include function_post-in-list-short.html
9
+ post=current_post
10
+ %}
11
+ </li>
12
+ ----
13
+ {% endcomment %}
14
+
15
+
16
+ {% assign post = include.post %}
17
+
18
+ {{ post.date | date: "%Y-%m-%d" }}:
19
+ {% if post.permalink %}
20
+ {% comment %}
21
+ I use permalinks to indicate that an article was at some point considered beeing finished.
22
+ {% endcomment %}
23
+ <i class="fa fa-link text-success" title="This article has a permalink."></i>
24
+ {% endif %}
25
+ <a href="{{ post.url }}">{{ post.title }}</a>
@@ -4,6 +4,8 @@ layout: page
4
4
  ---
5
5
  {{ content }}
6
6
 
7
- {% include function_list-posts.html %}
7
+ {% include function_list-posts.html
8
+ postlist=site.posts
9
+ %}
8
10
 
9
11
 
@@ -13,14 +13,7 @@ page.tag and page.title are set by the plugin `generate-taglist`.
13
13
  Number of posts tagged with "<em>{{ page.tag }}</em>": <strong>{{ site.tags[ page.tag ] | size }}</strong>
14
14
  </p>
15
15
 
16
- <ul>
17
- {% for post in site.tags[ page.tag ] %}
18
-
19
- <li>
20
- {{ post.date | date: "%Y-%m-%d" }}: <a href="{{ post.url }}">{{ post.title }}</a>
21
- </li>
22
-
23
- {% endfor %}
24
- </ul>
25
-
26
-
16
+ {% assign tag_posts = site.tags[page.tag] %}
17
+ {% include function_list-posts.html
18
+ postlist=tag_posts
19
+ %}
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Endless
3
- VERSION = '0.8.0'
3
+ VERSION = '0.9.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-endless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Boekhoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-19 00:00:00.000000000 Z
11
+ date: 2020-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -38,6 +38,7 @@ files:
38
38
  - _includes/content_footer-usernames.html
39
39
  - _includes/function_list-pages.html
40
40
  - _includes/function_list-posts.html
41
+ - _includes/function_post-in-list-short.html
41
42
  - _includes/function_show-dates.html
42
43
  - _includes/function_show-prev-next-navigation.html
43
44
  - _includes/function_tag-cloud.html