jekyll-theme-low 1.3.3 → 1.3.4
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/_includes/head.html +4 -11
- data/_includes/post-list.html +6 -4
- data/_includes/post-meta.html +6 -8
- data/_layouts/archive.html +4 -9
- data/_layouts/home.html +1 -5
- data/_layouts/post.html +12 -22
- data/_layouts/tag.html +2 -4
- data/assets/css/main.scss +41 -0
- data/lib/low/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a2fb909e894dd5537eb131afbd179a47037f8dc25d6f441ccf6fa14cbffb86a
|
|
4
|
+
data.tar.gz: d2a2588928d18f27c9f65a00116fed54f507f17159d31d3c77b9c53ae4cedf11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 715a70e6ae5c54d3784f4773eddc358ef41bccdd35417b6e7451cd61864702a8b3217704cb839aa996a40e45da39f6d3c3d6203a93a6e4dc5d030b64b4d72223
|
|
7
|
+
data.tar.gz: 5978f8103083ce8355945eeaa4a88f4a7c3c52f3b8576a692733f65c6d06923ea82e7a80cf13604a50db8cb9e234434cb10cc725c9c6356626a6fbaed59893c8
|
data/_includes/head.html
CHANGED
|
@@ -8,21 +8,14 @@
|
|
|
8
8
|
<link rel="icon" href="{{ site.favicon | relative_url }}">
|
|
9
9
|
{% endif %}
|
|
10
10
|
|
|
11
|
+
{% if site.apple_touch_icon %}
|
|
12
|
+
<link rel="apple-touch-icon" sizes="180x180" href="{{ site.apple_touch_icon | relative_url }}">
|
|
13
|
+
{% endif %}
|
|
14
|
+
|
|
11
15
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title }} RSS" href="{{ site.feed.path | default: '/rss.xml' | relative_url }}">
|
|
12
16
|
|
|
13
17
|
{% seo %}
|
|
14
18
|
|
|
15
|
-
{% assign post_image = page.image | default: site.image %}
|
|
16
|
-
{% if post_image %}
|
|
17
|
-
{% unless post_image contains "://" %}
|
|
18
|
-
{% assign post_image = post_image | absolute_url %}
|
|
19
|
-
{% endunless %}
|
|
20
|
-
<meta property="og:image" content="{{ post_image }}">
|
|
21
|
-
<meta name="twitter:image" content="{{ post_image }}">
|
|
22
|
-
{% endif %}
|
|
23
|
-
|
|
24
|
-
<meta name="twitter:description" content="{{ page.description | default: site.description | strip_html | truncate: 160 }}">
|
|
25
|
-
|
|
26
19
|
{% if page.layout == 'post' %}
|
|
27
20
|
<script type="application/ld+json">
|
|
28
21
|
{
|
data/_includes/post-list.html
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
<
|
|
1
|
+
<ul class="post-list">
|
|
2
2
|
{% assign posts_sorted = include.posts | default: site.posts | sort: "date" | reverse %}
|
|
3
3
|
{% for post in posts_sorted %}
|
|
4
|
-
|
|
5
|
-
<
|
|
4
|
+
<li>
|
|
5
|
+
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%d/%m/%Y" }}</time>
|
|
6
|
+
— <a href="{{ post.url | relative_url }}">{{ post.title }}</a>.
|
|
7
|
+
</li>
|
|
6
8
|
{% endfor %}
|
|
7
|
-
</
|
|
9
|
+
</ul>
|
data/_includes/post-meta.html
CHANGED
|
@@ -2,18 +2,16 @@
|
|
|
2
2
|
{% assign reading_time = words | divided_by: 200 %}
|
|
3
3
|
{% if reading_time == 0 %}{% assign reading_time = 1 %}{% endif %}
|
|
4
4
|
|
|
5
|
-
<p class="meta"
|
|
6
|
-
<time datetime="{{ page.date | date_to_xmlschema }}">
|
|
7
|
-
|
|
8
|
-
</time>
|
|
9
|
-
· {{ reading_time }} min read
|
|
5
|
+
<p class="meta">
|
|
6
|
+
<time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%d/%m/%Y" }}</time>
|
|
7
|
+
· {{ reading_time }} min read
|
|
10
8
|
{% if page.categories and page.categories.size > 0 %}
|
|
11
|
-
|
|
9
|
+
· {{ page.categories | array_to_sentence_string }}
|
|
12
10
|
{% endif %}
|
|
13
11
|
{% if page.tags and page.tags.size > 0 %}
|
|
14
|
-
|
|
12
|
+
· tags:
|
|
15
13
|
{% for tag in page.tags %}
|
|
16
|
-
<a class="tag-link" href="{{
|
|
14
|
+
<a class="tag-link" href="{{ '/tags/' | append: tag | slugify | relative_url }}/">{{ tag }}</a>{% unless forloop.last %},{% endunless %}
|
|
17
15
|
{% endfor %}
|
|
18
16
|
{% endif %}
|
|
19
17
|
</p>
|
data/_layouts/archive.html
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
|
-
<
|
|
4
|
+
<h1 class="heading">Archive</h1>
|
|
5
5
|
<hr>
|
|
6
6
|
|
|
7
7
|
{% assign grouped = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %}
|
|
8
8
|
{% assign grouped = grouped | sort: 'name' | reverse %}
|
|
9
9
|
{% for year in grouped %}
|
|
10
|
-
<h2
|
|
10
|
+
<h2 class="heading">{{ year.name }}</h2>
|
|
11
11
|
<hr>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{% for post in posts_sorted %}
|
|
15
|
-
{{ post.date | date: "%d/%m/%Y" }}:
|
|
16
|
-
<a href="{{ post.url | relative_url }}">{{ post.title }}</a><br>
|
|
17
|
-
{% endfor %}
|
|
18
|
-
</p>
|
|
12
|
+
{% assign posts_sorted = year.items | sort: "date" | reverse %}
|
|
13
|
+
{% include post-list.html posts=posts_sorted %}
|
|
19
14
|
{% endfor %}
|
data/_layouts/home.html
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
|
-
<h1 class="heading">{{ site.
|
|
4
|
+
<h1 class="heading">{{ site.title }}</h1>
|
|
5
5
|
<hr>
|
|
6
|
-
<p>{{ site.description }}</p>
|
|
7
6
|
{{ content }}
|
|
8
7
|
<h2 class="heading">Articles</h2>
|
|
9
8
|
<hr>
|
|
10
9
|
{% include post-list.html %}
|
|
11
|
-
<h2 class="heading">Projects</h2>
|
|
12
|
-
<hr>
|
|
13
|
-
<p>Ongoing work lives on the <a href="{{ '/projects/' | relative_url }}">projects</a> page.</p>
|
|
14
10
|
<hr>
|
|
15
11
|
<div class="sun-rule"><span class="sun">*</span></div>
|
data/_layouts/post.html
CHANGED
|
@@ -33,36 +33,26 @@ layout: default
|
|
|
33
33
|
{% endfor %}
|
|
34
34
|
|
|
35
35
|
{% if related_posts.size > 0 %}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
{%
|
|
40
|
-
{{ post.date | date: "%d/%m/%Y" }}: <a href="{{ post.url | relative_url }}">{{ post.title }}</a><br>
|
|
41
|
-
{% endfor %}
|
|
42
|
-
</p>
|
|
36
|
+
{% assign shown = related_posts | slice: 0, 3 %}
|
|
37
|
+
<h2 class="heading">Related Articles</h2>
|
|
38
|
+
<hr>
|
|
39
|
+
{% include post-list.html posts=shown %}
|
|
43
40
|
{% elsif site.posts.size > 1 %}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
{%
|
|
48
|
-
{% for post in site.posts %}
|
|
49
|
-
{% if post.url != page.url and other_count < 3 %}
|
|
50
|
-
{{ post.date | date: "%d/%m/%Y" }}: <a href="{{ post.url | relative_url }}">{{ post.title }}</a><br>
|
|
51
|
-
{% assign other_count = other_count | plus: 1 %}
|
|
52
|
-
{% endif %}
|
|
53
|
-
{% endfor %}
|
|
54
|
-
</p>
|
|
41
|
+
{% assign others = site.posts | where_exp: "post", "post.url != page.url" | slice: 0, 3 %}
|
|
42
|
+
<h2 class="heading">More Articles</h2>
|
|
43
|
+
<hr>
|
|
44
|
+
{% include post-list.html posts=others %}
|
|
55
45
|
{% endif %}
|
|
56
46
|
|
|
57
|
-
<nav class="post-nav"
|
|
47
|
+
<nav class="post-nav">
|
|
58
48
|
<div class="prev">
|
|
59
49
|
{% if page.previous %}
|
|
60
|
-
|
|
50
|
+
← <a href="{{ page.previous.url | relative_url }}">{{ page.previous.title }}</a>
|
|
61
51
|
{% endif %}
|
|
62
52
|
</div>
|
|
63
|
-
<div class="next"
|
|
53
|
+
<div class="next">
|
|
64
54
|
{% if page.next %}
|
|
65
|
-
<a href="{{ page.next.url | relative_url }}">{{ page.next.title }}</a>
|
|
55
|
+
<a href="{{ page.next.url | relative_url }}">{{ page.next.title }}</a> →
|
|
66
56
|
{% endif %}
|
|
67
57
|
</div>
|
|
68
58
|
</nav>
|
data/_layouts/tag.html
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
|
-
<h1>
|
|
4
|
+
<h1 class="heading">Tag: {{ page.tag | upcase }}</h1>
|
|
5
5
|
<hr>
|
|
6
6
|
{% assign tagged_posts = site.posts | where_exp: "post", "post.tags contains page.tag" %}
|
|
7
7
|
{% if tagged_posts.size == 0 %}
|
|
8
8
|
<p>No posts found.</p>
|
|
9
9
|
{% else %}
|
|
10
|
-
{%
|
|
11
|
-
{% include post-list.html %}
|
|
12
|
-
{% endfor %}
|
|
10
|
+
{% include post-list.html posts=tagged_posts %}
|
|
13
11
|
{% endif %}
|
data/assets/css/main.scss
CHANGED
|
@@ -295,3 +295,44 @@ nav.post-nav a {
|
|
|
295
295
|
/* ===============================
|
|
296
296
|
SYTAX STYLE END
|
|
297
297
|
=============================== */
|
|
298
|
+
|
|
299
|
+
/* ===============================
|
|
300
|
+
POST LISTS
|
|
301
|
+
=============================== */
|
|
302
|
+
.post-list,
|
|
303
|
+
.tag-list {
|
|
304
|
+
list-style: none;
|
|
305
|
+
padding-left: 0;
|
|
306
|
+
margin: 0 0 1ch 0;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.post-list li,
|
|
310
|
+
.tag-list li {
|
|
311
|
+
margin-bottom: 0.5ch;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.post-list time {
|
|
315
|
+
white-space: nowrap;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* ===============================
|
|
319
|
+
POST META
|
|
320
|
+
=============================== */
|
|
321
|
+
p.meta {
|
|
322
|
+
margin: 0 0 2ch 0;
|
|
323
|
+
opacity: .8;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/* ===============================
|
|
327
|
+
POST NAV LAYOUT
|
|
328
|
+
=============================== */
|
|
329
|
+
nav.post-nav {
|
|
330
|
+
display: flex;
|
|
331
|
+
justify-content: space-between;
|
|
332
|
+
gap: 2ch;
|
|
333
|
+
margin-top: 2ch;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
nav.post-nav .next {
|
|
337
|
+
text-align: right;
|
|
338
|
+
}
|
data/lib/low/version.rb
CHANGED