jekyll-seo-tag 1.3.2 → 1.3.3

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: 0d30fdd6bf56ee4fed4ab0373b19ff15a2c73a2a
4
- data.tar.gz: 06ece8a6a21d9ac75c1abc32f5f665bf834608de
3
+ metadata.gz: 59faf9298ad2055092eb2b9b771ec052e09d9a85
4
+ data.tar.gz: 3b9bcf03366b9a98ff88b8e4a483cbf5dc35e80f
5
5
  SHA512:
6
- metadata.gz: a8ffaf9b7fb8ed55bada9fb269641a99892ed4989ce1dabcaf4e21bfac72aeb24f65cd6b10f3b9e1e19f89a8bec24fe5c8aedfbedf301740444e8327ecaa03b7
7
- data.tar.gz: 7d17b6daa35d80ac3a03ca20c8571ac888e78d2d7c4943e5525c46f9aa1caee4678f4f5bbe1d64679f78d362c93f6e5ab8fa917967e2883833da44a94c37bad2
6
+ metadata.gz: 181f5bf7435df0c4a08440f2a0cadeffa7196e2f1f5ca35b4bc242629f8156780a0cef88f48db48380cb711d6d8a4d9f4f44d7ee009b9a24234c9c7c5efb4144
7
+ data.tar.gz: 9b0cea7232186d07aa61497e8fc4d4b0301ce85de89773957b63f814e22589051df5122a46c97bd99089ad6067592e65c48bbdee97075b31919c9a01c2626725
@@ -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.2'.freeze
6
+ VERSION = '1.3.3'.freeze
7
7
  end
8
8
  end
data/lib/template.html CHANGED
@@ -84,6 +84,14 @@
84
84
  {% assign seo_links = site.social.links %}
85
85
  {% endif %}
86
86
 
87
+ {% if site.logo %}
88
+ {% assign seo_site_logo = site.logo | prepend: seo_url | escape %}
89
+ {% endif %}
90
+
91
+ {% if page.image %}
92
+ {% assign seo_page_image = page.image | prepend: seo_url | escape %}
93
+ {% endif %}
94
+
87
95
  {% if seo_tag.title and seo_title %}
88
96
  <title>{{ seo_title }}</title>
89
97
  {% endif %}
@@ -106,8 +114,8 @@
106
114
  <meta property="og:site_name" content="{{ seo_site_title }}" />
107
115
  {% endif %}
108
116
 
109
- {% if page.image %}
110
- <meta property="og:image" content="{{ page.image | prepend: seo_url | escape }}" />
117
+ {% if seo_page_image %}
118
+ <meta property="og:image" content="{{ seo_page_image }}" />
111
119
  {% endif %}
112
120
 
113
121
  {% if page.date %}
@@ -124,7 +132,12 @@
124
132
  {% endif %}
125
133
 
126
134
  {% if site.twitter %}
127
- <meta name="twitter:card" content="summary" />
135
+ {% if seo_page_image %}
136
+ <meta name="twitter:card" content="summary_large_image" />
137
+ {% else %}
138
+ <meta name="twitter:card" content="summary" />
139
+ {% endif %}
140
+
128
141
  <meta name="twitter:site" content="@{{ site.twitter.username | replace:"@","" }}" />
129
142
 
130
143
  {% if seo_author_twitter %}
@@ -162,8 +175,8 @@
162
175
  "headline": {{ seo_page_title | jsonify }},
163
176
  {% endif %}
164
177
 
165
- {% if page.image %}
166
- "image": {{ page.image | jsonify }},
178
+ {% if seo_page_image %}
179
+ "image": {{ seo_page_image | jsonify }},
167
180
  {% endif %}
168
181
 
169
182
  {% if page.date %}
@@ -174,8 +187,8 @@
174
187
  "description": {{ seo_description | jsonify }},
175
188
  {% endif %}
176
189
 
177
- {% if site.logo %}
178
- "logo": {{ site.logo | prepend: "/" | prepend: seo_url | jsonify }},
190
+ {% if seo_site_logo %}
191
+ "logo": {{ seo_site_logo | jsonify }},
179
192
  {% endif %}
180
193
 
181
194
  {% if seo_links %}
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.2
4
+ version: 1.3.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: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2016-03-25 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.6.1
141
+ rubygems_version: 2.6.2
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