typographical 1.0.3 → 1.0.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/related.html +14 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 76ce5233264b2153a4e17d1affdaa5d56b7e6d651db6f63f77f2ddd5df97f36c
|
|
4
|
+
data.tar.gz: 78dea5238e84b8e6793a317773c3159cd34590e33299ffe82bb7ceb3ea6cc00d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5234048a7b56b57e35b4d999c330a1f2eee9eb827bfb8f3f65779c9c7f8901684e0aac58bfba4095cd5a5557eee3fedd5c6d3ab523f1637b318901af16790f6
|
|
7
|
+
data.tar.gz: a09549c096eb40ee9a6552997b669361cbd72d95176a294185f772f564d292e7b893cc0346528b85c1bcbec0e594373ef6b1da1578a409cf225c3df99e64ce22
|
data/_includes/related.html
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{% if site.relatedpostsenabled %}
|
|
2
2
|
<div class="relatedposts">
|
|
3
3
|
|
|
4
|
+
{% if site.tagrelationlevel %}
|
|
5
|
+
{% assign tagrelationlevel = site.tagrelationlevel %}
|
|
6
|
+
{% else %}
|
|
7
|
+
{% assign tagrelationlevel = 2 %}
|
|
8
|
+
{% endif %}
|
|
9
|
+
|
|
10
|
+
{% if site.maxrelatedposts %}
|
|
11
|
+
{% assign maxrelatedposts = site.maxrelatedposts %}
|
|
12
|
+
{% else %}
|
|
13
|
+
{% assign maxrelatedposts = 3 %}
|
|
14
|
+
{% endif %}
|
|
15
|
+
|
|
4
16
|
{% assign maxRelatedCounter = 0 %}
|
|
5
17
|
|
|
6
18
|
<ul>
|
|
@@ -19,10 +31,10 @@
|
|
|
19
31
|
{% endif %}
|
|
20
32
|
{% endfor %}
|
|
21
33
|
|
|
22
|
-
{% if sameTagCount >=
|
|
34
|
+
{% if sameTagCount >= tagrelationlevel %}
|
|
23
35
|
<li>Related reading: <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
|
|
24
36
|
{% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
|
|
25
|
-
{% if maxRelatedCounter >=
|
|
37
|
+
{% if maxRelatedCounter >= maxrelatedposts %}
|
|
26
38
|
{% break %}
|
|
27
39
|
{% endif %}
|
|
28
40
|
{% endif %}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: typographical
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ram Iyer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-12-
|
|
11
|
+
date: 2018-12-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|