File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 17
17
18
18
{% if seo_tag.description %}
19
19
< meta name ="description " content ="{{ seo_tag.description }} " />
20
- < meta property ="og:description " content ="{{ seo_tag.description }} " />
21
- < meta property ="twitter:description " content ="{{ seo_tag.description }} " />
20
+ < meta name ="twitter:description " property ="og:description " content ="{{ seo_tag.description }} " />
22
21
{% endif %}
23
22
24
23
{% if site.url %}
59
58
60
59
{% if seo_tag.image %}
61
60
< meta name ="twitter:card " content ="{{ page.twitter.card | default: site.twitter.card | default: "summary_large_image " }}" />
62
- < meta property ="twitter:image " content ="{{ seo_tag.image.path }} " />
61
+ < meta name ="twitter:image " content ="{{ seo_tag.image.path }} " />
63
62
{% else %}
64
63
< meta name ="twitter:card " content ="summary " />
65
64
{% endif %}
69
68
{% endif %}
70
69
71
70
{% if seo_tag.page_title %}
72
- < meta property ="twitter:title " content ="{{ seo_tag.page_title }} " />
71
+ < meta name ="twitter:title " content ="{{ seo_tag.page_title }} " />
73
72
{% endif %}
74
73
75
74
{% if site.twitter %}
Original file line number Diff line number Diff line change 123
123
124
124
it "uses the page description" do
125
125
expect ( output ) . to match ( %r!<meta name="description" content="foo" />! )
126
- expect ( output ) . to match ( %r!<meta property="og:description" content="foo" />! )
127
- expect ( output ) . to match ( %r!<meta property="twitter:description" content="foo" />! )
126
+ expect ( output ) . to match ( %r!<meta name="twitter:description" property="og:description" content="foo" />! )
128
127
end
129
128
end
130
129
133
132
134
133
it "uses the page excerpt when no page description exists" do
135
134
expect ( output ) . to match ( %r!<meta name="description" content="foo" />! )
136
- expect ( output ) . to match ( %r!<meta property="og:description" content="foo" />! )
137
- expect ( output ) . to match ( %r!<meta property="twitter:description" content="foo" />! )
135
+ expect ( output ) . to match ( %r!<meta name="twitter:description" property="og:description" content="foo" />! )
138
136
end
139
137
end
140
138
143
141
144
142
it "uses the site description when no page description nor excerpt exist" do
145
143
expect ( output ) . to match ( %r!<meta name="description" content="foo" />! )
146
- expect ( output ) . to match ( %r!<meta property="og:description" content="foo" />! )
147
- expect ( output ) . to match ( %r!<meta property="twitter:description" content="foo" />! )
144
+ expect ( output ) . to match ( %r!<meta name="twitter:description" property="og:description" content="foo" />! )
148
145
end
149
146
end
150
147
You can’t perform that action at this time.
0 commit comments