jekyll-seo-tag 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 790e353c99ba43d63d29181aba54b1435c4ffcaf
4
- data.tar.gz: 60a7000c637295da3e020697979306df8b23cc3c
3
+ metadata.gz: 0d30fdd6bf56ee4fed4ab0373b19ff15a2c73a2a
4
+ data.tar.gz: 06ece8a6a21d9ac75c1abc32f5f665bf834608de
5
5
  SHA512:
6
- metadata.gz: 036641d11f5939ea122b35eadd8a25a320d5129f3b5099a6af568aa14c99cb688df358c4b8c3700f1d6e95ec5bdb8e8cc2ffdc6b15a44c33185bebef96297d46
7
- data.tar.gz: a8b436ed3af1ec384effd4ca00509dabfb678b64424ea7ff5c2e52eb71415cffe4cf8faa70f04ba6ebfb3adfab44ae08a35542ecf8cddc7c9845bc6e7191ff43
6
+ metadata.gz: a8ffaf9b7fb8ed55bada9fb269641a99892ed4989ce1dabcaf4e21bfac72aeb24f65cd6b10f3b9e1e19f89a8bec24fe5c8aedfbedf301740444e8327ecaa03b7
7
+ data.tar.gz: 7d17b6daa35d80ac3a03ca20c8571ac888e78d2d7c4943e5525c46f9aa1caee4678f4f5bbe1d64679f78d362c93f6e5ab8fa917967e2883833da44a94c37bad2
data/README.md CHANGED
@@ -42,7 +42,7 @@ Jekyll SEO tag isn't designed to accommodate every possible use case. It should
42
42
  3. Add the following right before `</head>` in your site's template(s):
43
43
 
44
44
  ```liquid
45
- {% seo %}
45
+ {% seo %}
46
46
  ```
47
47
 
48
48
  ## Usage
@@ -60,12 +60,12 @@ The SEO tag will respect any of the following if included in your site's `_confi
60
60
  username: benbalter
61
61
  ```
62
62
 
63
- * `facebook:app_id` (A Facebook app ID for Facebook insights), and/or `facebook:publisher` (A Facebook page URL or ID of the publishing entity). You'll want to describe one or both like so:
63
+ * `facebook:app_id` (a Facebook app ID for Facebook insights), and/or `facebook:publisher` (a Facebook page URL or ID of the publishing entity). You'll want to describe one or both like so:
64
64
 
65
65
  ```yml
66
- facebook:
67
- app_id: 1234
68
- publisher: 1234
66
+ facebook:
67
+ app_id: 1234
68
+ publisher: 1234
69
69
  ```
70
70
 
71
71
  * `logo` - Relative URL to a site-wide logo (e.g., `/assets/your-company-logo.png`)
@@ -5,7 +5,7 @@ module Jekyll
5
5
  class SeoTag < Liquid::Tag
6
6
  attr_accessor :context
7
7
 
8
- MINIFY_REGEX = /(>\n|[%}]})\s+(<|{[{%])/
8
+ MINIFY_REGEX = /([>,]\n|[%}]})\s+?(<|{[{%]|[ ]+\")/
9
9
 
10
10
  def initialize(_tag_name, text, _tokens)
11
11
  super
@@ -3,6 +3,6 @@ module Liquid; class Tag; end; end
3
3
 
4
4
  module Jekyll
5
5
  class SeoTag < Liquid::Tag
6
- VERSION = '1.3.1'.freeze
6
+ VERSION = '1.3.2'.freeze
7
7
  end
8
8
  end
data/lib/template.html CHANGED
@@ -88,18 +88,18 @@
88
88
  <title>{{ seo_title }}</title>
89
89
  {% endif %}
90
90
 
91
- {% if seo_title %}
91
+ {% if seo_page_title %}
92
92
  <meta property="og:title" content="{{ seo_page_title }}" />
93
93
  {% endif %}
94
94
 
95
95
  {% if seo_description %}
96
96
  <meta name="description" content="{{ seo_description }}" />
97
- <meta property='og:description' content="{{ seo_description }}" />
97
+ <meta property="og:description" content="{{ seo_description }}" />
98
98
  {% endif %}
99
99
 
100
100
  {% if seo_url %}
101
101
  <link rel="canonical" href="{{ page.url | prepend: seo_url | replace:'/index.html','/' }}" />
102
- <meta property='og:url' content='{{ page.url | prepend: seo_url | replace:'/index.html','/' }}' />
102
+ <meta property="og:url" content="{{ page.url | prepend: seo_url | replace:'/index.html','/' }}" />
103
103
  {% endif %}
104
104
 
105
105
  {% if seo_site_title %}
@@ -126,12 +126,6 @@
126
126
  {% if site.twitter %}
127
127
  <meta name="twitter:card" content="summary" />
128
128
  <meta name="twitter:site" content="@{{ site.twitter.username | replace:"@","" }}" />
129
- <meta name="twitter:title" content="{{ seo_title }}" />
130
- <meta name="twitter:description" content="{{ seo_description }}" />
131
-
132
- {% if page.image %}
133
- <meta name="twitter:image" content="{{ page.image | prepend: seo_url | escape }}" />
134
- {% endif %}
135
129
 
136
130
  {% if seo_author_twitter %}
137
131
  <meta name="twitter:creator" content="@{{ seo_author_twitter }}" />
@@ -154,14 +148,14 @@
154
148
 
155
149
  <script type="application/ld+json">
156
150
  {
157
- "@context" : "http://schema.org",
151
+ "@context": "http://schema.org",
158
152
 
159
153
  {% if seo_type %}
160
- "@type" : {{ seo_type | jsonify }},
154
+ "@type": {{ seo_type | jsonify }},
161
155
  {% endif %}
162
156
 
163
157
  {% if seo_name %}
164
- "name" : {{ seo_name | jsonify }},
158
+ "name": {{ seo_name | jsonify }},
165
159
  {% endif %}
166
160
 
167
161
  {% if seo_page_title %}
@@ -185,10 +179,10 @@
185
179
  {% endif %}
186
180
 
187
181
  {% if seo_links %}
188
- "sameAs" : {{ seo_links | jsonify }},
182
+ "sameAs": {{ seo_links | jsonify }},
189
183
  {% endif %}
190
184
 
191
- "url" : "{{ page.url | prepend: seo_url | replace:'/index.html','/' }}"
185
+ "url": {{ page.url | prepend: seo_url | replace:'/index.html','/' | jsonify }}
192
186
  }
193
187
  </script>
194
188
 
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: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-25 00:00:00.000000000 Z
11
+ date: 2016-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.5.2
141
+ rubygems_version: 2.6.1
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: A Jekyll plugin to add metadata tags for search engines and social networks