From 8a8a5e98599361c7738d511cfc33242b240cf31e Mon Sep 17 00:00:00 2001 From: Aaron Gustafson Date: Mon, 3 Apr 2017 20:04:29 -0400 Subject: [PATCH] Added hyphen to underscore coersion --- lib/template.html | 3 +-- spec/jekyll_seo_tag_spec.rb | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/template.html b/lib/template.html index 38e89f6..c06665c 100755 --- a/lib/template.html +++ b/lib/template.html @@ -111,7 +111,7 @@ {% endif %} - + {% if seo_description %} @@ -128,7 +128,6 @@ {% endif %} {% if seo_page_image %} - {% if page.image.height %} diff --git a/spec/jekyll_seo_tag_spec.rb b/spec/jekyll_seo_tag_spec.rb index f738072..a96aea2 100755 --- a/spec/jekyll_seo_tag_spec.rb +++ b/spec/jekyll_seo_tag_spec.rb @@ -606,5 +606,14 @@ EOS end end end + + context "with site.lang hyphenated" do + let(:site) { make_site("lang" => "en-US") } + + it "coerces hyphen to underscore" do + expected = %r!! + expect(output).to match(expected) + end + end end end