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 +4 -4
- data/README.md +5 -5
- data/lib/jekyll-seo-tag.rb +1 -1
- data/lib/jekyll-seo-tag/version.rb +1 -1
- data/lib/template.html +8 -14
- 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: 0d30fdd6bf56ee4fed4ab0373b19ff15a2c73a2a
|
4
|
+
data.tar.gz: 06ece8a6a21d9ac75c1abc32f5f665bf834608de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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` (
|
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
|
-
|
67
|
-
|
68
|
-
|
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`)
|
data/lib/jekyll-seo-tag.rb
CHANGED
data/lib/template.html
CHANGED
@@ -88,18 +88,18 @@
|
|
88
88
|
<title>{{ seo_title }}</title>
|
89
89
|
{% endif %}
|
90
90
|
|
91
|
-
{% if
|
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=
|
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=
|
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"
|
151
|
+
"@context": "http://schema.org",
|
158
152
|
|
159
153
|
{% if seo_type %}
|
160
|
-
"@type"
|
154
|
+
"@type": {{ seo_type | jsonify }},
|
161
155
|
{% endif %}
|
162
156
|
|
163
157
|
{% if seo_name %}
|
164
|
-
"name"
|
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"
|
182
|
+
"sameAs": {{ seo_links | jsonify }},
|
189
183
|
{% endif %}
|
190
184
|
|
191
|
-
"url"
|
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.
|
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
|
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.
|
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
|