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.
@@ -1,24 +1,26 @@
1
1
  <div class="webmentions webmentions--links">
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
- {{ webmention.content }}
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
- {% if webmention.author %}
9
- <a class="webmention__author h-card u-url" href="{{ webmention.author.url }}">{{ webmention.author.name }}</a>
10
- {% endif %}
11
- {% if webmention.pubdate and webmention.url %}on{% endif %}
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
- <time class="webmention__pubdate dt-published" datetime="{{ webmention.pubdate | date: '%FT%T%:z' }}">{{ webmention.pubdate | date: '%d %B %Y' }}</time>
15
- </a>
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
- </div>
18
- </li>
19
- {% endfor %}
20
- </ol>
21
- {% else %}
22
- <p class="webmentions__not-found">No webmentions were found.</p>
23
- {% endif %}
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
- {% 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>
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
- </div>
12
- </li>
13
- {% endfor %}
14
- </ol>
15
- {% else %}
16
- <p class="webmentions__not-found">No webmentions were found.</p>
17
- {% endif %}
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
- {% 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
- {{ webmention.content }}
7
- <div class="webmention__meta">
8
- {% if webmention.author %}
9
- <a class="webmention__author h-card u-url" href="{{ webmention.author.url }}">
10
- {% if webmention.author.photo %}
11
- <img class="webmention__author__photo u-photo" src="{{ webmention.author.photo }}" alt="" title="{{ webmention.author.name }}">
12
- {% endif %}
13
- <b class="p-name">{{ webmention.author.name }}</b>
14
- </a>
15
- {% endif %}
16
- {% if webmention.pubdate and webmention.author %}on{% endif %}
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
- <time class="webmention__pubdate dt-published" datetime="{{ webmention.pubdate | date: '%FT%T%:z' }}">{{ webmention.pubdate | date: '%d %B %Y' }}</time>
20
- </a>
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
- </div>
23
- </li>
24
- {% endfor %}
25
- </ol>
26
- {% else %}
27
- <p class="webmentions__not-found">No webmentions were found.</p>
28
- {% endif %}
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
- {% 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 %}
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
- <div class="webmentions">
2
- {% if webmentions.size > 0 %}
3
- <ol class="webmentions__list">
4
- {% for webmention in webmentions %}
5
- <li id="webmention-{{ webmention.id }}" class="webmentions__item">
6
- <article class="h-cite webmention webmention--{{ webmention.type }}
7
- {% unless webmention.author %}webmention--no-author{% endunless %}
8
- {% unless webmention.author.photo %}webmention--no-photo{% endunless %}
9
- {% if webmention.is_tweet == true %}webmention--author-starts{% endif %}
10
- ">
11
- {% if webmention.author %}
12
- <div class="webmention__author p-author h-card">
13
- <a class="u-url" href="{{ webmention.author.url }}">
14
- {% if webmention.author.photo %}
15
- <img class="webmention__author__photo u-photo" src="{{ webmention.author.photo }}" alt="" title="{{ webmention.author.name }}">
16
- {% endif %}
17
- <b class="p-name">{{ webmention.author.name }}</b>
18
- </a>
19
- </div>
20
- {% endif %}
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
- {{ webmention.content }}
25
- {% else %}
25
+ {{ webmention.content }}
26
+ {% else %}
26
27
  {{ webmention.title }}
27
28
  {% endif %}
28
29
  </div>
29
30
 
30
- <div class="webmention__meta">
31
+ <div class="webmention__meta">
31
32
  {% if webmention.pubdate %}
32
33
  <time class="webmention__pubdate dt-published"
33
- datetime="{{ webmention.pubdate | date: '%FT%T%:z' }}">{{ webmention.pubdate | date: '%d %B %Y' }}</time>
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
- </article>
41
- </li>
42
- {% endfor %}
43
- </ol>
44
- {% else %}
45
- <p class="webmentions__not-found">No webmentions were found.</p>
46
- {% endif %}
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>
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module WebmentionIO
3
- VERSION = "2.1.0"
3
+ VERSION = "2.2.0"
4
4
  end
5
5
  end
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.1.0
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-26 00:00:00.000000000 Z
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/webmention_io.js
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