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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-mentions.rb +5 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c424f3f5a493ed41e0c4c59895f16829234e486
4
- data.tar.gz: d31b43b6ad5a3d69cc7dacbdd0ddbb6f8331725b
3
+ metadata.gz: 313b0be6655b4468d19cd2e5961cd75cd4ee382b
4
+ data.tar.gz: fc2b9e63a1df3adf4cab50da32df0e226049e723
5
5
  SHA512:
6
- metadata.gz: 7d060091a139fd70bc1a9c97a5107603e8cdd073913abbd8b8169f3275d37b006f425d6f04b3b3afd8493e51659a442b613cc0bf66f7c4539372a9a5fa163b2c
7
- data.tar.gz: d49f4329bebdcb20238dd082bd9d528441ef393283b52e798918d65070b25637a8730599932e304ed129bc5d318a475b6a8c972d8fcb08d318ee324bad3f9585
6
+ metadata.gz: 411d5868c4568227904289d9c05e1d39558aa025898cb876e1b22cfdaedfc14bb896bc235b9dd3492df5af7968c1f2922f99909390d2994be807cf8aaff788e2
7
+ data.tar.gz: 0fc669f6fba4111f3be42d3e4c43844e33b966dec321f186ea151c6a1c4d990171ac398820ee7dc6e0ae85003c35f819784e57606eb60bb5e83821714579984a
@@ -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.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.7
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-23 00:00:00.000000000 Z
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: []