Skip to content

Commit

Permalink
Fix: Consistently use self-closing tags
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Nov 8, 2017
1 parent 62de1fb commit ce38618
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions lib/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
{% endif %}

{% if paginator.previous_page %}
<link rel="prev" href="{{ paginator.previous_page_path | absolute_url }}">
<link rel="prev" href="{{ paginator.previous_page_path | absolute_url }}" />
{% endif %}
{% if paginator.next_page %}
<link rel="next" href="{{ paginator.next_page_path | absolute_url }}">
<link rel="next" href="{{ paginator.next_page_path | absolute_url }}" />
{% endif %}

{% if site.twitter %}
Expand Down Expand Up @@ -81,19 +81,19 @@

{% if site.webmaster_verifications %}
{% if site.webmaster_verifications.google %}
<meta name="google-site-verification" content="{{ site.webmaster_verifications.google }}">
<meta name="google-site-verification" content="{{ site.webmaster_verifications.google }}" />
{% endif %}

{% if site.webmaster_verifications.bing %}
<meta name="msvalidate.01" content="{{ site.webmaster_verifications.bing }}">
<meta name="msvalidate.01" content="{{ site.webmaster_verifications.bing }}" />
{% endif %}

{% if site.webmaster_verifications.alexa %}
<meta name="alexaVerifyID" content="{{ site.webmaster_verifications.alexa }}">
<meta name="alexaVerifyID" content="{{ site.webmaster_verifications.alexa }}" />
{% endif %}

{% if site.webmaster_verifications.yandex %}
<meta name="yandex-verification" content="{{ site.webmaster_verifications.yandex }}">
<meta name="yandex-verification" content="{{ site.webmaster_verifications.yandex }}" />
{% endif %}
{% elsif site.google_site_verification %}
<meta name="google-site-verification" content="{{ site.google_site_verification }}" />
Expand Down
12 changes: 6 additions & 6 deletions spec/jekyll_seo_tag_integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@
let(:context) { make_context({}, "paginator" => paginator) }

it "outputs pagination links" do
expect(output).to match(%r!<link rel="prev" href="/foo">!)
expect(output).to match(%r!<link rel="next" href="/bar">!)
expect(output).to match(%r!<link rel="prev" href="/foo" />!)
expect(output).to match(%r!<link rel="next" href="/bar" />!)
end
end

Expand All @@ -596,22 +596,22 @@
let(:site) { make_site("webmaster_verifications" => site_verifications) }

it "outputs google verification meta" do
expected = %r!<meta name="google-site-verification" content="foo">!
expected = %r!<meta name="google-site-verification" content="foo" />!
expect(output).to match(expected)
end

it "outputs bing verification meta" do
expected = %r!<meta name="msvalidate.01" content="bar">!
expected = %r!<meta name="msvalidate.01" content="bar" />!
expect(output).to match(expected)
end

it "outputs alexa verification meta" do
expected = %r!<meta name="alexaVerifyID" content="baz">!
expected = %r!<meta name="alexaVerifyID" content="baz" />!
expect(output).to match(expected)
end

it "outputs yandex verification meta" do
expected = %r!<meta name="yandex-verification" content="bat">!
expected = %r!<meta name="yandex-verification" content="bat" />!
expect(output).to match(expected)
end
end
Expand Down

0 comments on commit ce38618

Please sign in to comment.