jekyll-mentions 0.0.7 → 0.0.8
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 +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 313b0be6655b4468d19cd2e5961cd75cd4ee382b
|
4
|
+
data.tar.gz: fc2b9e63a1df3adf4cab50da32df0e226049e723
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 411d5868c4568227904289d9c05e1d39558aa025898cb876e1b22cfdaedfc14bb896bc235b9dd3492df5af7968c1f2922f99909390d2994be807cf8aaff788e2
|
7
|
+
data.tar.gz: 0fc669f6fba4111f3be42d3e4c43844e33b966dec321f186ea151c6a1c4d990171ac398820ee7dc6e0ae85003c35f819784e57606eb60bb5e83821714579984a
|
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.ends_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.0.
|
4
|
+
version: 0.0.8
|
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-06-
|
11
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.5.0
|
41
|
-
description:
|
41
|
+
description:
|
42
42
|
email: support@github.com
|
43
43
|
executables: []
|
44
44
|
extensions: []
|