jekyll-theme-endless 0.3.4 → 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 +4 -4
- data/README.adoc +18 -0
- data/_includes/function_show-dates.html +16 -0
- data/_includes/function_show-prev-next-navigation.html +13 -0
- data/_includes/function_tag-list.html +15 -0
- data/_layouts/default.html +3 -3
- data/_layouts/post.html +39 -9
- data/_sass/posts.scss +16 -0
- data/assets/css/main.scss +1 -0
- data/lib/jekyll-theme-endless/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69ca0a202fdb3f05970cb2e99a6718220173c3383ab3649c3d4733d8d647ad8b
|
4
|
+
data.tar.gz: aa05cd183d0ae7ef3767b3ada0e101b48b515ccad38b50502ac5af04215c5275
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4a4dc344fcfe38993cc1ba0f88bc9c4eac5883bbeadfeafa5c5fea182c426ce059f24a774b6ac5b8fc9e90eed7bb0dbc71a37d74a1f5a68f93bf750b0be457a
|
7
|
+
data.tar.gz: 7137b1499ecf59cb76ad21ef4956838dbfa10ca45c2d64d278ee1976a92a62e982753fafb895f3a2905d7c3f12df34817f68f0813c661dfad48446af16df8d1d
|
data/README.adoc
CHANGED
@@ -200,6 +200,24 @@ username_xing: XXXX
|
|
200
200
|
username_linkedin: XXXX
|
201
201
|
----
|
202
202
|
|
203
|
+
`_includes/function_tag-list.html`::
|
204
|
+
Generates a formatted list of tags.
|
205
|
+
This is e.g. used to display the tags of a blog post.
|
206
|
+
|
207
|
+
`_includes/function_show-dates.html`::
|
208
|
+
Show the creation date and (if present) the date a blog post was last edited.
|
209
|
+
The date of the last edit can be configured by setting a value for the page-variable `lastedit`.
|
210
|
+
|
211
|
+
In AsciiDoc this would be e.g.:
|
212
|
+
|
213
|
+
[source, AsciiDoc]
|
214
|
+
----
|
215
|
+
:page-lastedit: 2020-10-29
|
216
|
+
----
|
217
|
+
|
218
|
+
`_includes/function_show-prev-next-navigation.html`::
|
219
|
+
Displays links to the previous and the next post of your blog.
|
220
|
+
|
203
221
|
|
204
222
|
|
205
223
|
=== Plugins
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="text-right">
|
2
|
+
|
3
|
+
<time class="created" datetime="{{ include.created | date_to_xmlschema }}">
|
4
|
+
<span class="sr-only sr-only-focusable">created:</span>
|
5
|
+
<strong title="date of creation">{{ include.created | date: "%b %-d, %Y" }}</strong>
|
6
|
+
</time>
|
7
|
+
|
8
|
+
{% if include.edited != "" and include.edited %}
|
9
|
+
/
|
10
|
+
<time class="edited" datetime="{{ include.edited | date_to_xmlschema }}">
|
11
|
+
<span class="sr-only sr-only-focusable">edited:</span>
|
12
|
+
<strong title="date of last edit">{{ include.edited | date: "%b %-d, %Y" }}</strong>
|
13
|
+
</time>
|
14
|
+
{% endif %}
|
15
|
+
|
16
|
+
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div class="row text-left">
|
2
|
+
<div class="col">
|
3
|
+
{% if page.next %}
|
4
|
+
<a href="{{ page.next.url }}">« {{page.next.title}}</a>
|
5
|
+
{% endif %}
|
6
|
+
</div>
|
7
|
+
<div class="col text-right">
|
8
|
+
{% if page.previous %}
|
9
|
+
<a href="{{ page.previous.url }}">{{page.previous.title}} »</a>
|
10
|
+
{% endif %}
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{% comment %}
|
2
|
+
Generates an unsorted list of tags.
|
3
|
+
Requires an array of tags beeing provided via the parameter `tags`.
|
4
|
+
{% endcomment %}
|
5
|
+
{% assign asize = include.tags | size %}
|
6
|
+
{% if asize > 0 %}
|
7
|
+
<ul class="list-inline">
|
8
|
+
{% for current_tag in include.tags %}
|
9
|
+
<li class="list-inline-item"><a
|
10
|
+
class="badge badge-pill badge-secondary"
|
11
|
+
href="/{{ site.tag_dir | default: 'tags' }}/{{ current_tag }}"
|
12
|
+
>{{ current_tag }}</a></li>
|
13
|
+
{% endfor %}
|
14
|
+
</ul>
|
15
|
+
{% endif %}
|
data/_layouts/default.html
CHANGED
@@ -51,15 +51,15 @@ layout: html
|
|
51
51
|
|
52
52
|
|
53
53
|
<!-- Page content -->
|
54
|
-
<main class="container pt-4
|
54
|
+
<main class="container pt-4" style="flex-grow: 1;" aria-label="Content">
|
55
55
|
|
56
56
|
<div class="row">
|
57
57
|
|
58
|
-
<div class="col-lg-8">
|
58
|
+
<div class="col-lg-8 pb-5">
|
59
59
|
{{ content }}
|
60
60
|
</div>
|
61
61
|
|
62
|
-
<div class="col-lg-4">
|
62
|
+
<div class="col-lg-4 pb-5">
|
63
63
|
<aside>
|
64
64
|
<h3>Blog Navigation</h3>
|
65
65
|
|
data/_layouts/post.html
CHANGED
@@ -1,12 +1,42 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
{% endcomment %}
|
8
|
-
{%
|
9
|
-
|
10
|
-
{%
|
11
|
-
|
12
|
-
|
4
|
+
<article>
|
5
|
+
<header>
|
6
|
+
|
7
|
+
{% comment %}Show link to previous/next post.{% endcomment %}
|
8
|
+
{% include function_show-prev-next-navigation.html %}
|
9
|
+
|
10
|
+
{% comment %}Show dates of the post.{% endcomment %}
|
11
|
+
{% include function_show-dates.html
|
12
|
+
created = page.date
|
13
|
+
edited = page.lastedit
|
14
|
+
%}
|
15
|
+
|
16
|
+
{% comment %}
|
17
|
+
In Markdown posts, page.title defaults to parts of the filename.
|
18
|
+
Thus, do not use `# Heading` in Blog posts, otherwise two H1-heading will appear.
|
19
|
+
{% endcomment %}
|
20
|
+
{% if page.title %}
|
21
|
+
<h1>{{ page.title }}</h1>
|
22
|
+
{% endif %}
|
23
|
+
|
24
|
+
{% comment %}Show tags of the post.{% endcomment %}
|
25
|
+
{% include function_tag-list.html
|
26
|
+
tags=page.tags
|
27
|
+
%}
|
28
|
+
|
29
|
+
</header>
|
30
|
+
|
31
|
+
<div>
|
32
|
+
{{ content }}
|
33
|
+
</div>
|
34
|
+
|
35
|
+
{% comment %}Show link to previous/next post.{% endcomment %}
|
36
|
+
{% include function_show-prev-next-navigation.html %}
|
37
|
+
|
38
|
+
</article>
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
data/_sass/posts.scss
ADDED
data/assets/css/main.scss
CHANGED
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.
|
4
|
+
version: 0.4.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-10-
|
11
|
+
date: 2020-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -37,7 +37,10 @@ files:
|
|
37
37
|
- _includes/content_footer-usernames.html
|
38
38
|
- _includes/function_list-pages.html
|
39
39
|
- _includes/function_list-posts.html
|
40
|
+
- _includes/function_show-dates.html
|
41
|
+
- _includes/function_show-prev-next-navigation.html
|
40
42
|
- _includes/function_tag-cloud.html
|
43
|
+
- _includes/function_tag-list.html
|
41
44
|
- _layouts/default.html
|
42
45
|
- _layouts/html.html
|
43
46
|
- _layouts/page-postlist.html
|
@@ -46,6 +49,7 @@ files:
|
|
46
49
|
- _layouts/post.html
|
47
50
|
- _sass/address.scss
|
48
51
|
- _sass/background.scss
|
52
|
+
- _sass/posts.scss
|
49
53
|
- _sass/tag-cloud.scss
|
50
54
|
- _sass/user.scss
|
51
55
|
- assets/css/main.scss
|