diff --git a/lib/onebox/engine/cloudapp_onebox.rb b/lib/onebox/engine/cloudapp_onebox.rb index 9f4422d2..93a41995 100644 --- a/lib/onebox/engine/cloudapp_onebox.rb +++ b/lib/onebox/engine/cloudapp_onebox.rb @@ -25,7 +25,7 @@ def to_html def link_html(og) <<-HTML - + #{og.title} HTML @@ -43,7 +43,7 @@ def video_html(og) def image_html(og) <<-HTML - + CloudApp HTML diff --git a/lib/onebox/engine/flickr_onebox.rb b/lib/onebox/engine/flickr_onebox.rb index 94c05a58..dd22b484 100644 --- a/lib/onebox/engine/flickr_onebox.rb +++ b/lib/onebox/engine/flickr_onebox.rb @@ -26,7 +26,7 @@ def album_html(og) <<-HTML
- + #{album_title} @@ -42,7 +42,7 @@ def image_html(og) escaped_url = ::Onebox::Helpers.normalize_url_for_output(url) <<-HTML - + Imgur HTML diff --git a/lib/onebox/engine/giphy_onebox.rb b/lib/onebox/engine/giphy_onebox.rb index c54b9b1e..10709b91 100644 --- a/lib/onebox/engine/giphy_onebox.rb +++ b/lib/onebox/engine/giphy_onebox.rb @@ -13,7 +13,7 @@ def to_html oembed = get_oembed <<-HTML - + HTML diff --git a/lib/onebox/engine/google_photos_onebox.rb b/lib/onebox/engine/google_photos_onebox.rb index fbd9cb08..6fb5356c 100644 --- a/lib/onebox/engine/google_photos_onebox.rb +++ b/lib/onebox/engine/google_photos_onebox.rb @@ -33,7 +33,7 @@ def album_html(og) <<-HTML
- + #{Onebox::Helpers.truncate(album_title, 80)} @@ -49,7 +49,7 @@ def image_html(og) escaped_url = ::Onebox::Helpers.normalize_url_for_output(url) <<-HTML - + Google Photos HTML diff --git a/lib/onebox/engine/image_onebox.rb b/lib/onebox/engine/image_onebox.rb index 5be1ec46..dc7f1901 100644 --- a/lib/onebox/engine/image_onebox.rb +++ b/lib/onebox/engine/image_onebox.rb @@ -19,7 +19,7 @@ def to_html escaped_url = ::Onebox::Helpers.normalize_url_for_output(@url) <<-HTML - + HTML diff --git a/lib/onebox/engine/imgur_onebox.rb b/lib/onebox/engine/imgur_onebox.rb index 24b7b245..dc5c2e0b 100644 --- a/lib/onebox/engine/imgur_onebox.rb +++ b/lib/onebox/engine/imgur_onebox.rb @@ -34,7 +34,7 @@ def album_html(og) <<-HTML
- + #{album_title} @@ -57,7 +57,7 @@ def image_html(og) escaped_url = ::Onebox::Helpers.normalize_url_for_output(url) <<-HTML - + Imgur HTML diff --git a/spec/lib/onebox/engine/google_drive_onebox_spec.rb b/spec/lib/onebox/engine/google_drive_onebox_spec.rb index 105a0d56..3c90de42 100644 --- a/spec/lib/onebox/engine/google_drive_onebox_spec.rb +++ b/spec/lib/onebox/engine/google_drive_onebox_spec.rb @@ -11,7 +11,7 @@ end it "includes title" do - expect(html).to include('test.txt') + expect(html).to include('test.txt') end it "includes image" do diff --git a/spec/lib/onebox/engine/instagram_onebox_spec.rb b/spec/lib/onebox/engine/instagram_onebox_spec.rb index 77238628..bfdd2db6 100644 --- a/spec/lib/onebox/engine/instagram_onebox_spec.rb +++ b/spec/lib/onebox/engine/instagram_onebox_spec.rb @@ -11,7 +11,7 @@ end it "includes title" do - expect(html).to include('National Geographic') + expect(html).to include('National Geographic') end it "includes image" do diff --git a/templates/_layout.mustache b/templates/_layout.mustache index cb3ef272..e6008f32 100644 --- a/templates/_layout.mustache +++ b/templates/_layout.mustache @@ -4,10 +4,10 @@ {{/favicon}} {{#article_published_time}} - {{domain}} – {{article_published_time}} + {{domain}} – {{article_published_time}} {{/article_published_time}} {{^article_published_time}} - {{domain}} + {{domain}} {{/article_published_time}}
diff --git a/templates/amazon.mustache b/templates/amazon.mustache index 0898c7d5..7a99d7f8 100644 --- a/templates/amazon.mustache +++ b/templates/amazon.mustache @@ -1,6 +1,6 @@ {{#image}}{{/image}} -

{{title}}

+

{{title}}

{{#by_info}}{{by_info}}{{/by_info}}

{{description}}

diff --git a/templates/githubblob.mustache b/templates/githubblob.mustache index 7fc1cc9f..2cf9af5a 100644 --- a/templates/githubblob.mustache +++ b/templates/githubblob.mustache @@ -1,4 +1,4 @@ -

{{title}}

+

{{title}}

{{^has_lines}} {{#model_file}}