File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11<!-- Begin Jekyll SEO tag -->
22
33{% if site.url %}
4- {% assign seo_url = site.url %}
4+ {% assign seo_url = site.url | append: site.baseurl %}
55{% elsif site.github.url %}
66 {% assign seo_url = site.github.url %}
77{% endif %}
Original file line number Diff line number Diff line change 8686 expect ( subject . render ( context ) ) . to match ( expected )
8787 end
8888
89+ it "uses baseurl to build the seo url" do
90+ site = site ( { "url" => "http://example.invalid" , "baseurl" => "/foo" } )
91+ context = context ( { :site => site } )
92+ expected = %r!<link rel="canonical" href="http://example.invalid/foo/page.html" itemprop="url" />!
93+ expect ( subject . render ( context ) ) . to match ( expected )
94+ expected = %r!<meta property='og:url' content='http://example.invalid/foo/page.html' />!
95+ expect ( subject . render ( context ) ) . to match ( expected )
96+ end
97+
8998 it "outputs the site title meta" do
9099 site = site ( { "title" => "Foo" , "url" => "http://example.invalid" } )
91100 context = context ( { :site => site } )
You can’t perform that action at this time.
0 commit comments