jekyll-webmention_io 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/assets/JekyllWebmentionIO.js +511 -0
- data/lib/jekyll/assets/_utils.js +33 -0
- data/lib/jekyll/assets/liquid.js +134 -0
- data/lib/jekyll/assets/webmention_counters.js +48 -0
- data/lib/jekyll/assets/webmention_loader.js +34 -0
- data/lib/jekyll/assets/webmention_websocket.js +21 -0
- data/lib/jekyll/generators/compile_js.rb +74 -0
- data/lib/jekyll/generators/gather_webmentions.rb +182 -175
- data/lib/jekyll/tags/_.rb +7 -3
- data/lib/jekyll/tags/count.rb +2 -2
- data/lib/jekyll/tags/likes.rb +1 -1
- data/lib/jekyll/tags/links.rb +1 -1
- data/lib/jekyll/tags/posts.rb +1 -1
- data/lib/jekyll/tags/replies.rb +1 -1
- data/lib/jekyll/tags/reposts.rb +1 -1
- data/lib/jekyll/tags/webmentions_head.rb +34 -0
- data/lib/jekyll/tags/webmentions_js.rb +56 -0
- data/lib/jekyll/templates/count.html +2 -1
- data/lib/jekyll/templates/likes.html +15 -15
- data/lib/jekyll/templates/links.html +20 -18
- data/lib/jekyll/templates/posts.html +12 -12
- data/lib/jekyll/templates/replies.html +26 -24
- data/lib/jekyll/templates/reposts.html +15 -15
- data/lib/jekyll/templates/webmentions.html +32 -31
- data/lib/jekyll/webmention_io/version.rb +1 -1
- metadata +25 -3
- data/lib/jekyll/assets/webmention_io.js +0 -549
@@ -1,24 +1,26 @@
|
|
1
1
|
<div class="webmentions webmentions--links">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
{% if webmentions.size > 0 %}
|
3
|
+
<ol class="webmentions__list">
|
4
|
+
{% for webmention in webmentions %}
|
5
|
+
<li id="webmention-{{ webmention.id }}" class="webmentions__item webmention webmention--{{ webmention.type }}">
|
6
|
+
<div class="webmention__content p-content">
|
7
|
+
{{ webmention.content }}
|
8
|
+
</div>
|
7
9
|
<div class="webmention__meta">
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
10
|
+
{% if webmention.author %}
|
11
|
+
<a class="webmention__author h-card u-url" href="{{ webmention.author.url }}">{{ webmention.author.name }}</a>
|
12
|
+
{% endif %}
|
13
|
+
{% if webmention.pubdate and webmention.url %}on{% endif %}
|
12
14
|
{% if webmention.pubdate %}
|
13
15
|
<a class="webmention__source u-url" href="{{ webmention.url }}">
|
14
|
-
|
15
|
-
|
16
|
+
<time class="webmention__pubdate dt-published" datetime="{{ webmention.pubdate | date: '%FT%T%:z' }}">{{ webmention.pubdate | date: '%d %B %Y' }}</time>
|
17
|
+
</a>
|
16
18
|
{% endif %}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
19
|
+
</div>
|
20
|
+
</li>
|
21
|
+
{% endfor %}
|
22
|
+
</ol>
|
23
|
+
{% else %}
|
24
|
+
<p class="webmentions__not-found">No webmentions were found.</p>
|
25
|
+
{% endif %}
|
24
26
|
</div>
|
@@ -1,18 +1,18 @@
|
|
1
1
|
<div class="webmentions webmentions--posts">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
{% if webmentions.size > 0 %}
|
3
|
+
<ol class="webmentions__list">
|
4
|
+
{% for webmention in webmentions %}
|
5
|
+
<li id="webmention-{{ webmention.id }}" class="webmentions__item webmention webmention--{{ webmention.type }}">
|
6
|
+
<a class="webmention__title webmention__source u-url" href="{{ webmention.url }}">{{ webmention.title }}</a>
|
7
7
|
<div class="webmention__meta">
|
8
8
|
{% if webmention.pubdate %}
|
9
9
|
<time class="webmention__pubdate dt-published" datetime="{{ webmention.pubdate | date: '%FT%T%:z' }}">{{ webmention.pubdate | date: '%d %B %Y' }}</time>
|
10
10
|
{% endif %}
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
11
|
+
</div>
|
12
|
+
</li>
|
13
|
+
{% endfor %}
|
14
|
+
</ol>
|
15
|
+
{% else %}
|
16
|
+
<p class="webmentions__not-found">No webmentions were found.</p>
|
17
|
+
{% endif %}
|
18
18
|
</div>
|
@@ -1,29 +1,31 @@
|
|
1
1
|
<div class="webmentions webmentions--replies">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
2
|
+
{% if webmentions.size > 0 %}
|
3
|
+
<ol class="webmentions__list">
|
4
|
+
{% for webmention in webmentions %}
|
5
|
+
<li id="webmention-{{ webmention.id }}" class="webmentions__item webmention webmention--{{ webmention.type }}">
|
6
|
+
<div class="webmention__content p-content">
|
7
|
+
{{ webmention.content }}
|
8
|
+
</div>
|
9
|
+
<div class="webmention__meta">
|
10
|
+
{% if webmention.author %}
|
11
|
+
<a class="webmention__author h-card u-url" href="{{ webmention.author.url }}">
|
12
|
+
{% if webmention.author.photo %}
|
13
|
+
<img class="webmention__author__photo u-photo" src="{{ webmention.author.photo }}" alt="" title="{{ webmention.author.name }}">
|
14
|
+
{% endif %}
|
15
|
+
<b class="p-name">{{ webmention.author.name }}</b>
|
16
|
+
</a>
|
17
|
+
{% endif %}
|
18
|
+
{% if webmention.pubdate and webmention.author %}on{% endif %}
|
17
19
|
{% if webmention.pubdate %}
|
18
20
|
<a class="webmention__source u-url" href="{{ webmention.url }}">
|
19
|
-
|
20
|
-
|
21
|
+
<time class="webmention__pubdate dt-published" datetime="{{ webmention.pubdate | date: '%FT%T%:z' }}">{{ webmention.pubdate | date: '%d %B %Y' }}</time>
|
22
|
+
</a>
|
21
23
|
{% endif %}
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
</div>
|
25
|
+
</li>
|
26
|
+
{% endfor %}
|
27
|
+
</ol>
|
28
|
+
{% else %}
|
29
|
+
<p class="webmentions__not-found">No webmentions were found.</p>
|
30
|
+
{% endif %}
|
29
31
|
</div>
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<div class="webmentions webmentions--reposts">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
2
|
+
{% if webmentions.size > 0 %}
|
3
|
+
<ol class="webmentions__list">
|
4
|
+
{% for webmention in webmentions %}
|
5
|
+
<li id="webmention-{{ webmention.id }}" class="webmentions__item webmention webmention--{{ webmention.type }}">
|
6
|
+
<div class="webmention__author p-author h-card">
|
7
|
+
<a class="u-url" href="{{ webmention.author.url }}">
|
8
|
+
<img class="webmention__author__photo u-photo" src="{{ webmention.author.photo }}" alt="" title="{{ webmention.author.name }}">
|
9
|
+
</a>
|
10
|
+
</div>
|
11
|
+
</li>
|
12
|
+
{% endfor %}
|
13
|
+
</ol>
|
14
|
+
{% else %}
|
15
|
+
<p class="webmentions__not-found">No reposts were found.</p>
|
16
|
+
{% endif %}
|
17
17
|
</div>
|
@@ -1,47 +1,48 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
1
|
+
{% capture webmention_types %}{{ types | join: ',' }}{% endcapture %}
|
2
|
+
<div class="webmentions"{% unless webmention_types=="" %} data-webmention-types="{{ webmention_types }}"{% endunless %}>
|
3
|
+
{% if webmentions.size > 0 %}
|
4
|
+
<ol class="webmentions__list">
|
5
|
+
{% for webmention in webmentions %}
|
6
|
+
<li id="webmention-{{ webmention.id }}" class="webmentions__item">
|
7
|
+
<article class="h-cite webmention webmention--{{ webmention.type }}
|
8
|
+
{% unless webmention.author %}webmention--no-author{% endunless %}
|
9
|
+
{% unless webmention.author.photo %}webmention--no-photo{% endunless %}
|
10
|
+
{% if webmention.source=='twitter' %}{% if webmention.type=='like' or webmention.type=='repost' %}webmention--author-starts{% endif %}{% endif %}
|
11
|
+
">
|
12
|
+
{% if webmention.author %}
|
13
|
+
<div class="webmention__author p-author h-card">
|
14
|
+
<a class="u-url" href="{{ webmention.author.url }}">
|
15
|
+
{% if webmention.author.photo %}
|
16
|
+
<img class="webmention__author__photo u-photo" src="{{ webmention.author.photo }}" alt="" title="{{ webmention.author.name }}">
|
17
|
+
{% endif %}
|
18
|
+
<b class="p-name">{{ webmention.author.name }}</b>
|
19
|
+
</a>
|
20
|
+
</div>
|
21
|
+
{% endif %}
|
21
22
|
|
22
23
|
<div class="webmention__content p-content">
|
23
24
|
{% if webmention.content %}
|
24
|
-
|
25
|
-
|
25
|
+
{{ webmention.content }}
|
26
|
+
{% else %}
|
26
27
|
{{ webmention.title }}
|
27
28
|
{% endif %}
|
28
29
|
</div>
|
29
30
|
|
30
|
-
|
31
|
+
<div class="webmention__meta">
|
31
32
|
{% if webmention.pubdate %}
|
32
33
|
<time class="webmention__pubdate dt-published"
|
33
|
-
|
34
|
+
datetime="{{ webmention.pubdate | date: '%FT%T%:z' }}">{{ webmention.pubdate | date: '%d %B %Y' }}</time>
|
34
35
|
{% endif %}
|
35
36
|
{% if webmention.pubdate and webmention.url %}|{% endif %}
|
36
37
|
{% if webmention.url %}
|
37
38
|
<a class="webmention__source u-url" href="{{ webmention.url }}">Permalink</a>
|
38
39
|
{% endif %}
|
39
40
|
</div>
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
41
|
+
</article>
|
42
|
+
</li>
|
43
|
+
{% endfor %}
|
44
|
+
</ol>
|
45
|
+
{% else %}
|
46
|
+
<p class="webmentions__not-found">No webmentions were found.</p>
|
47
|
+
{% endif %}
|
47
48
|
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-webmention_io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Gustafson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -100,6 +100,20 @@ dependencies:
|
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '1.1'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: uglifier
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '3.2'
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '3.2'
|
103
117
|
- !ruby/object:Gem::Dependency
|
104
118
|
name: bundler
|
105
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,8 +202,14 @@ extensions: []
|
|
188
202
|
extra_rdoc_files: []
|
189
203
|
files:
|
190
204
|
- lib/jekyll-webmention_io.rb
|
191
|
-
- lib/jekyll/assets/
|
205
|
+
- lib/jekyll/assets/JekyllWebmentionIO.js
|
206
|
+
- lib/jekyll/assets/_utils.js
|
207
|
+
- lib/jekyll/assets/liquid.js
|
208
|
+
- lib/jekyll/assets/webmention_counters.js
|
209
|
+
- lib/jekyll/assets/webmention_loader.js
|
210
|
+
- lib/jekyll/assets/webmention_websocket.js
|
192
211
|
- lib/jekyll/commands/webmention.rb
|
212
|
+
- lib/jekyll/generators/compile_js.rb
|
193
213
|
- lib/jekyll/generators/gather_webmentions.rb
|
194
214
|
- lib/jekyll/generators/queue_webmentions.rb
|
195
215
|
- lib/jekyll/tags/_.rb
|
@@ -200,6 +220,8 @@ files:
|
|
200
220
|
- lib/jekyll/tags/replies.rb
|
201
221
|
- lib/jekyll/tags/reposts.rb
|
202
222
|
- lib/jekyll/tags/webmentions.rb
|
223
|
+
- lib/jekyll/tags/webmentions_head.rb
|
224
|
+
- lib/jekyll/tags/webmentions_js.rb
|
203
225
|
- lib/jekyll/templates/count.html
|
204
226
|
- lib/jekyll/templates/likes.html
|
205
227
|
- lib/jekyll/templates/links.html
|