jekyll-seo-tag 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -2
- data/jekyll-seo-tag.gemspec +1 -1
- data/lib/jekyll-seo-tag.rb +1 -0
- data/lib/jekyll-seo-tag/version.rb +1 -1
- data/lib/template.html +14 -11
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cc372667e8031faba02cb7bb2bf1e1a51be7fd6
|
4
|
+
data.tar.gz: 37b8a3f10ecffdf6a300834c2088c915f0ac95a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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.
|
data/jekyll-seo-tag.gemspec
CHANGED
@@ -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.
|
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'
|
data/lib/jekyll-seo-tag.rb
CHANGED
data/lib/template.html
CHANGED
@@ -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 |
|
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 |
|
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 |
|
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 |
|
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
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
{
|
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:
|
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-
|
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.
|
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.
|
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.
|
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:
|