Skip to content

Commit a1eb49b

Browse files
committed
Merge pull request #93 from pathawks/ellipses
Use ellipses instead of three dots
2 parents 6d7b3a3 + 3a6fd59 commit a1eb49b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lib/jekyll-redirect-from/redirect_page.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Encoding: utf-8
2+
13
module JekyllRedirectFrom
24
class RedirectPage < Jekyll::Page
35
# Initialize a new RedirectPage.
@@ -20,10 +22,10 @@ def generate_redirect_content(item_url)
2022
self.output = self.content = <<-EOF
2123
<!DOCTYPE html>
2224
<meta charset="utf-8">
23-
<title>Redirecting...</title>
25+
<title>Redirecting</title>
2426
<link rel="canonical" href="#{item_url}">
2527
<meta http-equiv="refresh" content="0; url=#{item_url}">
26-
<h1>Redirecting...</h1>
28+
<h1>Redirecting</h1>
2729
<a href="#{item_url}">Click here if you are not redirected.</a>
2830
<script>location="#{item_url}"</script>
2931
EOF

spec/jekyll_redirect_from/redirect_page_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Encoding: utf-8
2+
13
require "spec_helper"
24

35
describe JekyllRedirectFrom::RedirectPage do
@@ -8,7 +10,7 @@
810

911
context "#generate_redirect_content" do
1012
it "sets the #content to the generated refresh page" do
11-
expect(page_content).to eq("<!DOCTYPE html>\n<meta charset=\"utf-8\">\n<title>Redirecting...</title>\n<link rel=\"canonical\" href=\"#{item_url}\">\n<meta http-equiv=\"refresh\" content=\"0; url=#{item_url}\">\n<h1>Redirecting...</h1>\n<a href=\"#{item_url}\">Click here if you are not redirected.</a>\n<script>location=\"#{item_url}\"</script>\n")
13+
expect(page_content).to eq("<!DOCTYPE html>\n<meta charset=\"utf-8\">\n<title>Redirecting</title>\n<link rel=\"canonical\" href=\"#{item_url}\">\n<meta http-equiv=\"refresh\" content=\"0; url=#{item_url}\">\n<h1>Redirecting</h1>\n<a href=\"#{item_url}\">Click here if you are not redirected.</a>\n<script>location=\"#{item_url}\"</script>\n")
1214
end
1315

1416
it "contains the meta refresh tag" do

0 commit comments

Comments
 (0)