jekyll-webmention_io 2.0.1
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 +7 -0
- data/assets/webmention_io.js +549 -0
- data/lib/jekyll/commands/webmention.rb +48 -0
- data/lib/jekyll/generators/gather_webmentions.rb +239 -0
- data/lib/jekyll/generators/queue_webmentions.rb +50 -0
- data/lib/jekyll/tags/_.rb +132 -0
- data/lib/jekyll/tags/count.rb +26 -0
- data/lib/jekyll/tags/likes.rb +27 -0
- data/lib/jekyll/tags/links.rb +27 -0
- data/lib/jekyll/tags/posts.rb +27 -0
- data/lib/jekyll/tags/replies.rb +27 -0
- data/lib/jekyll/tags/reposts.rb +27 -0
- data/lib/jekyll/tags/webmentions.rb +23 -0
- data/lib/jekyll/webmention_io/version.rb +3 -0
- data/lib/jekyll/webmention_io.rb +207 -0
- data/lib/jekyll-webmention_io.rb +1 -0
- data/templates/count.html +1 -0
- data/templates/likes.html +17 -0
- data/templates/links.html +24 -0
- data/templates/posts.html +18 -0
- data/templates/replies.html +29 -0
- data/templates/reposts.html +17 -0
- data/templates/webmentions.html +48 -0
- metadata +152 -0
@@ -0,0 +1,18 @@
|
|
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 webmentions__item--{{ webmention.type }}">
|
6
|
+
<a class="webmention__title webmention__source u-url" href="{{ webmention.url }}">{{ webmention.title }}</a>
|
7
|
+
<div class="webmention__meta">
|
8
|
+
{% if webmention.pubdate %}
|
9
|
+
<time class="webmention__pubdate dt-published" datetime="{{ webmention.pubdate | date: '%FT%T%:z' }}">{{ webmention.pubdate | date: '%d %B %Y' }}</time>
|
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 %}
|
18
|
+
</div>
|
@@ -0,0 +1,29 @@
|
|
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 webmentions__item--{{ webmention.type }}">
|
6
|
+
{{ webmention.content }}
|
7
|
+
<div class="webmention__meta">
|
8
|
+
{% if webmention.author %}
|
9
|
+
<a class="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 %}
|
17
|
+
{% if webmention.pubdate %}
|
18
|
+
<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
|
+
{% endif %}
|
22
|
+
</div>
|
23
|
+
</li>
|
24
|
+
{% endfor %}
|
25
|
+
</ol>
|
26
|
+
{% else %}
|
27
|
+
<p class="webmentions__not-found">No webmentions were found.</p>
|
28
|
+
{% endif %}
|
29
|
+
</div>
|
@@ -0,0 +1,17 @@
|
|
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 webmentions__item--{{ 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
|
+
</div>
|
@@ -0,0 +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 webmentions__item--{{ webmention.type }}">
|
6
|
+
<article class="h-cite
|
7
|
+
{{ webmention.classes }}
|
8
|
+
{% unless webmention.author %}webmention--no-author{% endunless %}
|
9
|
+
{% unless webmention.author.photo %}webmention--no-photo{% endunless %}
|
10
|
+
{% if webmention.is_tweet == true %}webmention--author-starts{% 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 %}
|
22
|
+
|
23
|
+
<div class="webmention__content p-content">
|
24
|
+
{% if webmention.content %}
|
25
|
+
{{ webmention.content }}
|
26
|
+
{% else %}
|
27
|
+
{{ webmention.title }}
|
28
|
+
{% endif %}
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div class="webmention__meta">
|
32
|
+
{% if webmention.pubdate %}
|
33
|
+
<time class="webmention__pubdate dt-published"
|
34
|
+
datetime="{{ webmention.pubdate | date: '%FT%T%:z' }}">{{ webmention.pubdate | date: '%d %B %Y' }}</time>
|
35
|
+
{% endif %}
|
36
|
+
{% if webmention.pubdate and webmention.url %}|{% endif %}
|
37
|
+
{% if webmention.url %}
|
38
|
+
<a class="webmention__source u-url" href="{{ webmention.url }}">Permalink</a>
|
39
|
+
{% endif %}
|
40
|
+
</div>
|
41
|
+
</article>
|
42
|
+
</li>
|
43
|
+
{% endfor %}
|
44
|
+
</ol>
|
45
|
+
{% else %}
|
46
|
+
<p class="webmentions__not-found">No webmentions were found.</p>
|
47
|
+
{% endif %}
|
48
|
+
</div>
|
metadata
ADDED
@@ -0,0 +1,152 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-webmention_io
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Aaron Gustafson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: string_inflection
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: htmlbeautifier
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jekyll
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '4.0'
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '3.0'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '4.0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '12.0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '12.0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rubocop
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0.48'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0.48'
|
89
|
+
description: |
|
90
|
+
This Gem includes a full suite of tools for managing webmentions in Jekyll:
|
91
|
+
|
92
|
+
* Tags - render webmention info into your templates:
|
93
|
+
** All webmentions
|
94
|
+
** Count of webmentions
|
95
|
+
** Likes
|
96
|
+
** Replies
|
97
|
+
** Reposts
|
98
|
+
* Commands - Send webmentions you’ve made
|
99
|
+
* Generators - Collect webmentions from Webmention.io and gather sites you’ve mentioned
|
100
|
+
email:
|
101
|
+
- aaron@easy-designs.net
|
102
|
+
executables: []
|
103
|
+
extensions: []
|
104
|
+
extra_rdoc_files: []
|
105
|
+
files:
|
106
|
+
- assets/webmention_io.js
|
107
|
+
- lib/jekyll-webmention_io.rb
|
108
|
+
- lib/jekyll/commands/webmention.rb
|
109
|
+
- lib/jekyll/generators/gather_webmentions.rb
|
110
|
+
- lib/jekyll/generators/queue_webmentions.rb
|
111
|
+
- lib/jekyll/tags/_.rb
|
112
|
+
- lib/jekyll/tags/count.rb
|
113
|
+
- lib/jekyll/tags/likes.rb
|
114
|
+
- lib/jekyll/tags/links.rb
|
115
|
+
- lib/jekyll/tags/posts.rb
|
116
|
+
- lib/jekyll/tags/replies.rb
|
117
|
+
- lib/jekyll/tags/reposts.rb
|
118
|
+
- lib/jekyll/tags/webmentions.rb
|
119
|
+
- lib/jekyll/webmention_io.rb
|
120
|
+
- lib/jekyll/webmention_io/version.rb
|
121
|
+
- templates/count.html
|
122
|
+
- templates/likes.html
|
123
|
+
- templates/links.html
|
124
|
+
- templates/posts.html
|
125
|
+
- templates/replies.html
|
126
|
+
- templates/reposts.html
|
127
|
+
- templates/webmentions.html
|
128
|
+
homepage: https://github.com/aarongustafson/jekyll-webmention_io
|
129
|
+
licenses:
|
130
|
+
- MIT
|
131
|
+
metadata: {}
|
132
|
+
post_install_message:
|
133
|
+
rdoc_options: []
|
134
|
+
require_paths:
|
135
|
+
- "."
|
136
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
requirements: []
|
147
|
+
rubyforge_project:
|
148
|
+
rubygems_version: 2.6.12
|
149
|
+
signing_key:
|
150
|
+
specification_version: 4
|
151
|
+
summary: A Jekyll plugin for sending & receiving webmentions via Webmention.io.
|
152
|
+
test_files: []
|