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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3d74fe6edc106955fc1661ce4407689a80eee0f3458266625b4561df12ee673
4
- data.tar.gz: 7bc022f78ce9ccd3ba1a11c3fcd2abeb959fa4f4598e4d0d89bfdc7c02149b77
3
+ metadata.gz: 3a2fb909e894dd5537eb131afbd179a47037f8dc25d6f441ccf6fa14cbffb86a
4
+ data.tar.gz: d2a2588928d18f27c9f65a00116fed54f507f17159d31d3c77b9c53ae4cedf11
5
5
  SHA512:
6
- metadata.gz: 146a0972b4b5c5790cfafec9d90936f922fb26d2df7579be3c313c87b52426e74dc36c8b7d348cb7c9ae55859be6ca980edee2c961ada02c53c5bd57419db954
7
- data.tar.gz: 0ce5827d5197bed7249257f2afeabe9b9559b2509d66ee5d41550f65b7d8a775938a9f3c60f0e53ea901e47bc534bf3230b5d58d71075866883e602f6c144f20
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
  {
@@ -1,7 +1,9 @@
1
- <p style="text-align:left; margin-bottom:1ch;">
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
- {{ post.date | date: "%d/%m/%Y" }}:
5
- <a href="{{ post.url | relative_url }}">{{ post.title }}</a><br>
4
+ <li>
5
+ <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%d/%m/%Y" }}</time>
6
+ &mdash; <a href="{{ post.url | relative_url }}">{{ post.title }}</a>.
7
+ </li>
6
8
  {% endfor %}
7
- </p>
9
+ </ul>
@@ -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" style="margin:0 0 2ch 0; opacity:.8;">
6
- <time datetime="{{ page.date | date_to_xmlschema }}">
7
- {{ page.date | date: "%d/%m/%Y" }}
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
+ &middot; {{ reading_time }} min read
10
8
  {% if page.categories and page.categories.size > 0 %}
11
- · {{ page.categories | array_to_sentence_string }}
9
+ &middot; {{ page.categories | array_to_sentence_string }}
12
10
  {% endif %}
13
11
  {% if page.tags and page.tags.size > 0 %}
14
- · tags:
12
+ &middot; tags:
15
13
  {% for tag in page.tags %}
16
- <a class="tag-link" href="{{ site.baseurl }}/tags/{{ tag | slugify }}/">{{ tag }}</a>{% unless forloop.last %},{% endunless %}
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>
@@ -1,19 +1,14 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <div class="heading">Archive</div>
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 style="margin-top:2ch;">{{ year.name }}</h2>
10
+ <h2 class="heading">{{ year.name }}</h2>
11
11
  <hr>
12
- <p style="text-align:left; margin-bottom:1ch;">
13
- {% assign posts_sorted = year.items | sort: "date" | reverse %}
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.tagline | default: site.title }}</h1>
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
- <h2 class="heading">Related Articles</h2>
37
- <hr>
38
- <p style="text-align:left; margin-bottom:1ch;">
39
- {% for post in related_posts limit: 3 %}
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
- <h2 class="heading">More Articles</h2>
45
- <hr>
46
- <p style="text-align:left; margin-bottom:1ch;">
47
- {% assign other_count = 0 %}
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" style="display:flex; justify-content:space-between; margin-top:2ch;">
47
+ <nav class="post-nav">
58
48
  <div class="prev">
59
49
  {% if page.previous %}
60
- <a href="{{ page.previous.url | relative_url }}">{{ page.previous.title }}</a>
50
+ &larr; <a href="{{ page.previous.url | relative_url }}">{{ page.previous.title }}</a>
61
51
  {% endif %}
62
52
  </div>
63
- <div class="next" style="text-align:right;">
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> &rarr;
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>TAG: {{ page.tag | upcase }}</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
- {% for post in tagged_posts %}
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Low
3
- VERSION = "1.3.3"
3
+ VERSION = "1.3.4"
4
4
  end
5
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-low
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Levent Kaya