jekyll-mentions 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-mentions.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0cf042d821c487a934227b47778c36fae4f75b5
|
4
|
+
data.tar.gz: d1a81d6d9ac676792fdf199a46e50d245536defa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6404a09fd5e4f8ec2a334906e4cf49c27d23b17c3554b7f4e6f329f2140c50e101d8ceb0243e71a0a2a455a5d15432d0bc92e431a2ad5c20dd8bf30c2a4b891
|
7
|
+
data.tar.gz: 7cda778f9943d941045a2159ba549fc501c049b3be28c562b389d16631f3f4e5fda31b9f9e3f3cb03244e8fad10c0949bdc7c60dbf99e5ccaf10f9c894885367
|
data/lib/jekyll-mentions.rb
CHANGED
@@ -13,7 +13,7 @@ module Jekyll
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def generate(site)
|
16
|
-
site.pages.each { |page| mentionify page if page
|
16
|
+
site.pages.each { |page| mentionify page if html_page?(page) }
|
17
17
|
site.posts.each { |page| mentionify page }
|
18
18
|
end
|
19
19
|
|
@@ -21,5 +21,9 @@ module Jekyll
|
|
21
21
|
return unless page.content.include?('@')
|
22
22
|
page.content = @filter.mention_link_filter(page.content)
|
23
23
|
end
|
24
|
+
|
25
|
+
def html_page?(page)
|
26
|
+
page.html? || page.url.end_with?('/')
|
27
|
+
end
|
24
28
|
end
|
25
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-mentions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|