jekyll-autolinks 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/jekyll-autolinks.gemspec +1 -1
- data/lib/jekyll-autolinks.rb +4 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87ea409efed71b6bc754d2d9d6a53ccc6395ef0548972f6ef9cfa2c13770f0db
|
4
|
+
data.tar.gz: c3fd21bace97cbe05d79940c0b1f38e393bfc0ea1787a3ec18d4952418bbc39d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfca65924f05c0e0fcee78f00d9f9d265610628a7927a27ea9f6832b6a4eea5898b483257a382084a8ddd628b378413d934784f08b1f1fdc9666b725f42a7e7e
|
7
|
+
data.tar.gz: c0cb7a5e04a362ae872e66a1fa07c574e8a318396143de7118873feee69a642ab83728a9711f20f6774a25f59f44038ac6319d5f6ef169c32fd95c388437dfa1
|
data/Gemfile.lock
CHANGED
data/jekyll-autolinks.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "jekyll-autolinks"
|
7
|
-
spec.version = "0.2.
|
7
|
+
spec.version = "0.2.1"
|
8
8
|
spec.authors = ["ADoyle"]
|
9
9
|
spec.email = ["adoyle.h@gmail.com"]
|
10
10
|
spec.summary = "Autolink for your Jekyll site."
|
data/lib/jekyll-autolinks.rb
CHANGED
@@ -2,11 +2,9 @@ require 'jekyll'
|
|
2
2
|
require 'rinku'
|
3
3
|
|
4
4
|
Jekyll::Hooks.register :pages, :post_render do |page|
|
5
|
-
if
|
6
|
-
|
5
|
+
if page.html?
|
6
|
+
link_attr = page.site.config['autolinks']['link_attr']
|
7
|
+
skip_tags = page.site.config['autolinks']['skip_tags']
|
8
|
+
page.content = +Rinku.auto_link(page.content, :all, link_attr, skip_tags)
|
7
9
|
end
|
8
|
-
|
9
|
-
link_attr = site.config['autolinks']['link_attr']
|
10
|
-
skip_tags = site.config['autolinks']['skip_tags']
|
11
|
-
page.content = +Rinku.auto_link(page.content, :all, link_attr, skip_tags)
|
12
10
|
end
|