Merge pull request #2731 from jekyll/doc-to_s

This commit is contained in:
Parker Moore 2014-08-12 13:47:32 -04:00
commit ba63a2c6d1
2 changed files with 6 additions and 3 deletions

View File

@ -246,7 +246,7 @@ module Jekyll
#
# Returns the content of the document
def to_s
output || content
content || ''
end
# Compare this document against another document.

View File

@ -49,14 +49,17 @@ module Jekyll
output = render_liquid(output, payload, info)
end
output = convert(output)
document.content = output
if document.place_in_layout?
place_in_layouts(
convert(output),
output,
payload,
info
)
else
convert(output)
output
end
end