File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 1818{% if seo_tag.description %}
1919 < meta name ="description " content ="{{ seo_tag.description }} " />
2020 < meta property ="og:description " content ="{{ seo_tag.description }} " />
21+ < meta property ="twitter:description " content ="{{ seo_tag.description }} " />
2122{% endif %}
2223
2324{% if site.url %}
Original file line number Diff line number Diff line change 124124 it "uses the page description" do
125125 expect ( output ) . to match ( %r!<meta name="description" content="foo" />! )
126126 expect ( output ) . to match ( %r!<meta property="og:description" content="foo" />! )
127+ expect ( output ) . to match ( %r!<meta property="twitter:description" content="foo" />! )
127128 end
128129 end
129130
133134 it "uses the page excerpt when no page description exists" do
134135 expect ( output ) . to match ( %r!<meta name="description" content="foo" />! )
135136 expect ( output ) . to match ( %r!<meta property="og:description" content="foo" />! )
137+ expect ( output ) . to match ( %r!<meta property="twitter:description" content="foo" />! )
136138 end
137139 end
138140
142144 it "uses the site description when no page description nor excerpt exist" do
143145 expect ( output ) . to match ( %r!<meta name="description" content="foo" />! )
144146 expect ( output ) . to match ( %r!<meta property="og:description" content="foo" />! )
147+ expect ( output ) . to match ( %r!<meta property="twitter:description" content="foo" />! )
145148 end
146149 end
147150
You can’t perform that action at this time.
0 commit comments