From 5db0198c52314d24f207e02f906a3bd07e455fa2 Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Sat, 20 Feb 2016 20:48:18 -0800 Subject: [PATCH] Add tag and language WCAG 2.0, Guideline 3.1.1 requires that "The default human language of each Web page can be programmatically determined" --- lib/jekyll-redirect-from/redirect_page.rb | 2 ++ spec/jekyll_redirect_from/redirect_page_spec.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/jekyll-redirect-from/redirect_page.rb b/lib/jekyll-redirect-from/redirect_page.rb index cb9d239..4b60210 100644 --- a/lib/jekyll-redirect-from/redirect_page.rb +++ b/lib/jekyll-redirect-from/redirect_page.rb @@ -21,6 +21,7 @@ def initialize(site, base, dir, name) def generate_redirect_content(item_url) self.output = self.content = <<-EOF + Redirecting… @@ -28,6 +29,7 @@ def generate_redirect_content(item_url)

Redirecting…

Click here if you are not redirected. + EOF end end diff --git a/spec/jekyll_redirect_from/redirect_page_spec.rb b/spec/jekyll_redirect_from/redirect_page_spec.rb index 4b0d783..ac8bbd7 100644 --- a/spec/jekyll_redirect_from/redirect_page_spec.rb +++ b/spec/jekyll_redirect_from/redirect_page_spec.rb @@ -10,7 +10,7 @@ context "#generate_redirect_content" do it "sets the #content to the generated refresh page" do - expect(page_content).to eq("\n\nRedirecting…\n\n\n

Redirecting…

\nClick here if you are not redirected.\n\n") + expect(page_content).to eq("\n\n\nRedirecting…\n\n\n

Redirecting…

\nClick here if you are not redirected.\n\n\n") end it "contains the meta refresh tag" do