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 1717
1818{% if seo_tag.description %}
1919 < 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 }} " />
2221{% endif %}
2322
2423{% if site.url %}
5958
6059{% if seo_tag.image %}
6160 < 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 }} " />
6362{% else %}
6463 < meta name ="twitter:card " content ="summary " />
6564{% endif %}
6968{% endif %}
7069
7170{% 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 }} " />
7372{% endif %}
7473
7574{% if site.twitter %}
Original file line number Diff line number Diff line change 123123
124124 it "uses the page description" do
125125 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" />! )
128127 end
129128 end
130129
133132
134133 it "uses the page excerpt when no page description exists" do
135134 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" />! )
138136 end
139137 end
140138
143141
144142 it "uses the site description when no page description nor excerpt exist" do
145143 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" />! )
148145 end
149146 end
150147
You can’t perform that action at this time.
0 commit comments