jekyll-seo-tag 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jekyll-seo-tag.gemspec +1 -1
- data/lib/jekyll-seo-tag.rb +10 -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: 8cdff06231b75a2ecb150cdfb81cdb801313ddb8
|
4
|
+
data.tar.gz: 03934ef692a5c3ab070ca620f3e5ad564b4ba334
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 103731eadffe841e6955ea3669413d48f9445cfd2e90e94f9218ea6ab3b9dc8071215b37f080891dabd0f888978e2cf7f1abd90bd5d26c09f05035868bddb4c6
|
7
|
+
data.tar.gz: 28f7a0d315788fc49df2132e56e471b9bcd4e4c5089c21bef1e40ce7c648b55fb50843655c438b09ef2ccc053f597327d5a99ad1d94dc1adbbdb1119601b3830
|
data/jekyll-seo-tag.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-seo-tag"
|
7
|
-
spec.version = "0.1.
|
7
|
+
spec.version = "0.1.3"
|
8
8
|
spec.authors = ["Ben Balter"]
|
9
9
|
spec.email = ["ben.balter@github.com"]
|
10
10
|
spec.summary = %q{A Jekyll plugin to add metadata tags for search engines and social networks to better index and display your site's content.}
|
data/lib/jekyll-seo-tag.rb
CHANGED
@@ -5,7 +5,16 @@ module Jekyll
|
|
5
5
|
|
6
6
|
def render(context)
|
7
7
|
@context = context
|
8
|
-
Liquid::Template.parse(template_contents).render!(payload, info)
|
8
|
+
output = Liquid::Template.parse(template_contents).render!(payload, info)
|
9
|
+
|
10
|
+
# Minify
|
11
|
+
output.gsub!(/[\s]{2,}/, "\n")
|
12
|
+
|
13
|
+
# Encode smart quotes. See https://github.com/benbalter/jekyll-seo-tag/pull/6
|
14
|
+
output.gsub!("\u201c", "“")
|
15
|
+
output.gsub!("\u201d", "”")
|
16
|
+
|
17
|
+
output
|
9
18
|
end
|
10
19
|
|
11
20
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-seo-tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Balter
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.
|
124
|
+
rubygems_version: 2.5.0
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: A Jekyll plugin to add metadata tags for search engines and social networks
|