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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-mentions.rb +5 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e4fedf976d1af1c0f5849a1648add7a0b4bbb9b
4
- data.tar.gz: dd2e0873b42c544add81bfc5f1a9c7a7f54b09f3
3
+ metadata.gz: a0cf042d821c487a934227b47778c36fae4f75b5
4
+ data.tar.gz: d1a81d6d9ac676792fdf199a46e50d245536defa
5
5
  SHA512:
6
- metadata.gz: cd9796cf1fdac01b96eae1508d119d13a5ddbffc75d6d5e635843a242236ae5efea52b9dbd4ea41a93827d60195f19292c0ef27abe558e4f4fb854307f8918ed
7
- data.tar.gz: 179bf825606c0ea171e7b1e0bcf201c343eaaa45b83107e882b94ccbd9af3fdd8eaa86f6d7deb131902d1439a7e72541f7fe5da0d9f90b1c9e34493a5b6f08d8
6
+ metadata.gz: e6404a09fd5e4f8ec2a334906e4cf49c27d23b17c3554b7f4e6f329f2140c50e101d8ceb0243e71a0a2a455a5d15432d0bc92e431a2ad5c20dd8bf30c2a4b891
7
+ data.tar.gz: 7cda778f9943d941045a2159ba549fc501c049b3be28c562b389d16631f3f4e5fda31b9f9e3f3cb03244e8fad10c0949bdc7c60dbf99e5ccaf10f9c894885367
@@ -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.html? }
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.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-06-23 00:00:00.000000000 Z
11
+ date: 2014-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll