jekyll-seo-tag 1.4.0 → 2.0.0

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: d212e590808ac3a0f94a2ddaaad78926fa0fbbde
4
- data.tar.gz: 75cc4d3aacbdcab6d95db98b1d7f1b69fe5047a2
3
+ metadata.gz: 7cc372667e8031faba02cb7bb2bf1e1a51be7fd6
4
+ data.tar.gz: 37b8a3f10ecffdf6a300834c2088c915f0ac95a6
5
5
  SHA512:
6
- metadata.gz: d2a782da804fa7d6bd0e9a7a60783785d7a6b2d2d9a9fe93b1d9f814fda0da16dbc0d86b508d7933ab766eccb9d8d021a85d896f62cb89156e911cc74977369d
7
- data.tar.gz: 9a204dcb6acd686174e898e2df5db91e6722067502cc1de4bc9b878c25c74981f46baff1fdaf1fab8d0decdb284707fc036ce34879d6aaa67816d84ca64e6b21
6
+ metadata.gz: 021b61812fb8b3b08d8bf281ef2790ddad459e89349910bd434975d32b96a7b8cb9048bdfa138e44aa83114272ea9fc7b2689b7496c8c81187353331405376bc
7
+ data.tar.gz: d75c74ddfdd904a31e0fc5c9eaef1c407d700fc0276c92b53aa2597f3b01b97ea953548cc9ad343ddca85d456d43ec8dae8e8c5633742e7478491b6f46ac28c8
data/README.md CHANGED
@@ -11,7 +11,7 @@ Jekyll SEO Tag adds the following meta tags to your site:
11
11
  * Pages title (with site title appended when available)
12
12
  * Page description
13
13
  * Canonical URL
14
- * Next and previous URLs for posts
14
+ * Next and previous URLs on paginated pages
15
15
  * [JSON-LD Site and post metadata](https://developers.google.com/structured-data/) for richer indexing
16
16
  * [Open graph](http://ogp.me/) title, description, site title, and URL (for Facebook, LinkedIn, etc.)
17
17
  * [Twitter summary card](https://dev.twitter.com/cards/overview) metadata
@@ -60,12 +60,18 @@ 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` - The following properties are available:
64
+ * `facebook:app_id` - a Facebook app ID for Facebook insights
65
+ * `facebook:publisher` - a Facebook page URL or ID of the publishing entity
66
+ * `facebook:admins` - a Facebook user ID for domain insights linked to a personal account
67
+
68
+ You'll want to describe one or more like so:
64
69
 
65
70
  ```yml
66
71
  facebook:
67
72
  app_id: 1234
68
73
  publisher: 1234
74
+ admins: 1234
69
75
  ```
70
76
 
71
77
  * `logo` - URL to a site-wide logo (e.g., `/assets/your-company-logo.png`)
@@ -177,3 +183,7 @@ image:
177
183
  height: 100
178
184
  width: 100
179
185
  ```
186
+
187
+ ### SmartyPants Titles
188
+
189
+ Titles will be processed using [Jekyll's `smartify` filter](https://jekyllrb.com/docs/templates/). This will use SmartyPants to translate plain ASCII punctuation into "smart" typographic punctuation. This will not render or strip any Markdown you may be using in a page title.
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ['lib']
27
27
 
28
- spec.add_dependency 'jekyll', '~> 3.0'
28
+ spec.add_dependency 'jekyll', '~> 3.1'
29
29
  spec.add_development_dependency 'bundler', '~> 1.10'
30
30
  spec.add_development_dependency 'rake', '~> 10.0'
31
31
  spec.add_development_dependency 'rspec', '~> 3.3'
@@ -30,6 +30,7 @@ module Jekyll
30
30
  {
31
31
  'page' => context.registers[:page],
32
32
  'site' => context.registers[:site].site_payload['site'],
33
+ 'paginator' => context['paginator'],
33
34
  'seo_tag' => options
34
35
  }
35
36
  end
@@ -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.4.0'.freeze
6
+ VERSION = '2.0.0'.freeze
7
7
  end
8
8
  end
@@ -34,19 +34,19 @@
34
34
  {% assign seo_name = seo_site_title %}
35
35
  {% endif %}
36
36
  {% if seo_name %}
37
- {% assign seo_name = seo_name | markdownify | strip_html | strip_newlines | escape_once %}
37
+ {% assign seo_name = seo_name | smartify | strip_html | strip_newlines | escape_once %}
38
38
  {% endif %}
39
39
 
40
40
  {% if seo_title %}
41
- {% assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once %}
41
+ {% assign seo_title = seo_title | smartify | strip_html | strip_newlines | escape_once | escape_once %}
42
42
  {% endif %}
43
43
 
44
44
  {% if seo_site_title %}
45
- {% assign seo_site_title = seo_site_title | markdownify | strip_html | strip_newlines | escape_once %}
45
+ {% assign seo_site_title = seo_site_title | smartify | strip_html | strip_newlines | escape_once %}
46
46
  {% endif %}
47
47
 
48
48
  {% if seo_page_title %}
49
- {% assign seo_page_title = seo_page_title | markdownify | strip_html | strip_newlines | escape_once %}
49
+ {% assign seo_page_title = seo_page_title | smartify | strip_html | strip_newlines | escape_once %}
50
50
  {% endif %}
51
51
 
52
52
  {% assign seo_description = page.description | default: page.excerpt | default: site.description %}
@@ -139,14 +139,13 @@
139
139
  {% if page.date %}
140
140
  <meta property="og:type" content="article" />
141
141
  <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}" />
142
+ {% endif %}
142
143
 
143
- {% if page.next.url %}
144
- <link rel="next" href="{{ page.next.url | prepend: seo_url | replace:'/index.html','/' }}" title="{{ page.next.title | escape }}" />
145
- {% endif %}
146
-
147
- {% if page.previous.url %}
148
- <link rel="prev" href="{{ page.previous.url | prepend: seo_url | replace:'/index.html','/' }}" title="{{ page.previous.title | escape }}" />
149
- {% endif %}
144
+ {% if paginator.previous_page %}
145
+ <link rel="prev" href="{{ paginator.previous_page_path | prepend: seo_url }}">
146
+ {% endif %}
147
+ {% if paginator.next_page %}
148
+ <link rel="next" href="{{ paginator.next_page_path | prepend: seo_url }}">
150
149
  {% endif %}
151
150
 
152
151
  {% if site.twitter %}
@@ -164,6 +163,10 @@
164
163
  {% endif %}
165
164
 
166
165
  {% if site.facebook %}
166
+ {% if site.facebook.admins %}
167
+ <meta property="fb:admins" content="{{ site.facebook.admins }}" />
168
+ {% endif %}
169
+
167
170
  {% if site.facebook.publisher %}
168
171
  <meta property="article:publisher" content="{{ site.facebook.publisher }}" />
169
172
  {% endif %}
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.4.0
4
+ version: 2.0.0
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-04-25 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: '3.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.0'
26
+ version: '3.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -138,10 +138,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.6.2
141
+ rubygems_version: 2.6.4
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
145
145
  to better index and display your site's content.
146
146
  test_files: []
147
- has_rdoc: