Skip to content

Commit 9fb3acf

Browse files
authored
Merge pull request #137 from Crunch09/empty-output
Merge pull request 137
2 parents 81a969f + 6dd4e4f commit 9fb3acf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/jekyll-redirect-from/redirect_page.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def self.redirect_to(doc, path)
3333

3434
# Overwrite the default read_yaml method since the file doesn't exist
3535
def read_yaml(_base, _name, _opts = {})
36-
self.content = ""
36+
self.content = self.output = ""
3737
self.data ||= DEFAULT_DATA.dup
3838
end
3939

spec/jekyll_redirect_from/redirect_page_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
expect(subject.content).to eql("")
1515
end
1616

17+
it "returns no output" do
18+
expect(subject.output).to eql("")
19+
end
20+
1721
it "sets default data" do
1822
expect(subject.to_liquid["layout"]).to eql("redirect")
1923
expect(subject.to_liquid["sitemap"]).to be_falsey

0 commit comments

Comments
 (0)