jekyll-theme-low 1.2.4 → 1.3.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/_includes/head.html +14 -6
- data/_layouts/home.html +14 -1
- data/_layouts/post.html +44 -1
- 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: 9b272e6add9a97518a76ee4c83651c0ca0c5eb55e45ac35e12713a2e439202db
|
|
4
|
+
data.tar.gz: e178cc039d2982b0aa9bdeb1bb0e2926acec844f47da523f5b8640d4c8616ff9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ec9e1bed48640c55fdab20cb09d930cefbe7dc5f2171dee6cea151150779c2deed46edc8e2c247112ed7f960438a80d686aeecf54ea59cd8adb850c3ba8a019
|
|
7
|
+
data.tar.gz: 213cd972071e208cd5975d89f09fb0f1e4175eb241fc5eb0f6269c03b750ca6ec7e1878185c3b2b8f65dacf2164223240f4cca4cbd18e6d9aa804a614546f052
|
data/_includes/head.html
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
<meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=12.0, minimum-scale=1.0, user-scalable=yes">
|
|
3
3
|
|
|
4
|
-
{% if page.description %}
|
|
5
|
-
<meta name="description" content="{{ page.description | strip_html | truncate: 160 }}">
|
|
6
|
-
{% elsif site.description %}
|
|
7
|
-
<meta name="description" content="{{ site.description | strip_html | truncate: 160 }}">
|
|
8
|
-
{% endif %}
|
|
9
|
-
|
|
10
4
|
<link rel="preload" href="{{ '/assets/css/main.css' | relative_url }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
|
11
5
|
<noscript><link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}"></noscript>
|
|
12
6
|
|
|
@@ -18,6 +12,17 @@
|
|
|
18
12
|
|
|
19
13
|
{% seo %}
|
|
20
14
|
|
|
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
|
+
|
|
21
26
|
{% if page.layout == 'post' %}
|
|
22
27
|
<script type="application/ld+json">
|
|
23
28
|
{
|
|
@@ -33,6 +38,9 @@
|
|
|
33
38
|
},
|
|
34
39
|
"description": {{ page.description | default: site.description | strip_html | jsonify }},
|
|
35
40
|
"url": "{{ site.url }}{{ page.url }}"
|
|
41
|
+
{% if page.image %}
|
|
42
|
+
,"image": "{{ page.image | absolute_url }}"
|
|
43
|
+
{% endif %}
|
|
36
44
|
{% if page.tags and page.tags.size > 0 %}
|
|
37
45
|
,"keywords": {{ page.tags | join: ", " | jsonify }}
|
|
38
46
|
{% endif %}
|
data/_layouts/home.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
|
-
<h1 class="heading">{{ site.title }}</h1>
|
|
4
|
+
<h1 class="heading">{{ site.tagline | default: site.title }}</h1>
|
|
5
5
|
<hr>
|
|
6
6
|
|
|
7
7
|
<p>{{ site.description }}</p>
|
|
@@ -14,5 +14,18 @@ layout: default
|
|
|
14
14
|
<hr>
|
|
15
15
|
Ongoing… <a href="{{ '/projects/' | relative_url }}">Projects</a>
|
|
16
16
|
|
|
17
|
+
{% if site.bio %}
|
|
18
|
+
<h2 class="heading">About</h2>
|
|
19
|
+
<hr>
|
|
20
|
+
<p>{{ site.bio }}</p>
|
|
21
|
+
{% if site.bio_links %}
|
|
22
|
+
<p>
|
|
23
|
+
{% for link in site.bio_links %}
|
|
24
|
+
<a href="{{ link.url }}">{{ link.label }}</a>{% unless forloop.last %} · {% endunless %}
|
|
25
|
+
{% endfor %}
|
|
26
|
+
</p>
|
|
27
|
+
{% endif %}
|
|
28
|
+
{% endif %}
|
|
29
|
+
|
|
17
30
|
<hr>
|
|
18
31
|
<center><span class="sun">*</span></center>
|
data/_layouts/post.html
CHANGED
|
@@ -11,7 +11,50 @@ layout: default
|
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
13
|
<hr>
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
{% assign related_posts = "" | split: "" %}
|
|
16
|
+
{% for candidate in site.posts %}
|
|
17
|
+
{% if candidate.url != page.url %}
|
|
18
|
+
{% for tag in page.tags %}
|
|
19
|
+
{% if candidate.tags contains tag %}
|
|
20
|
+
{% assign already_added = false %}
|
|
21
|
+
{% for r in related_posts %}
|
|
22
|
+
{% if r.url == candidate.url %}
|
|
23
|
+
{% assign already_added = true %}
|
|
24
|
+
{% endif %}
|
|
25
|
+
{% endfor %}
|
|
26
|
+
{% unless already_added %}
|
|
27
|
+
{% assign related_posts = related_posts | push: candidate %}
|
|
28
|
+
{% endunless %}
|
|
29
|
+
{% break %}
|
|
30
|
+
{% endif %}
|
|
31
|
+
{% endfor %}
|
|
32
|
+
{% endif %}
|
|
33
|
+
{% endfor %}
|
|
34
|
+
|
|
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>
|
|
43
|
+
{% 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>
|
|
55
|
+
{% endif %}
|
|
56
|
+
|
|
57
|
+
<nav class="post-nav" style="display:flex; justify-content:space-between; margin-top:2ch;">
|
|
15
58
|
<div class="prev">
|
|
16
59
|
{% if page.previous %}
|
|
17
60
|
← <a href="{{ page.previous.url | relative_url }}">{{ page.previous.title }}</a>
|
data/lib/low/version.rb
CHANGED