Updating documentation for Convertible#do_layout

Making it clear that this method doesn't just work on posts
This commit is contained in:
Jack Danger Canty
2008-12-10 13:33:35 -08:00
parent 3840380c8d
commit 96bf21dce7

View File

@@ -34,7 +34,7 @@ module Jekyll
end
end
# Add any necessary layouts to this post
# Add any necessary layouts to this convertible document
# +layouts+ is a Hash of {"name" => "layout"}
# +site_payload+ is the site payload hash
#
@@ -42,7 +42,6 @@ module Jekyll
def do_layout(payload, layouts, site_payload)
# construct payload
payload = payload.merge(site_payload)
# render content
self.content = Liquid::Template.parse(self.content).render(payload, [Jekyll::Filters])
self.transform
@@ -60,4 +59,4 @@ module Jekyll
end
end
end
end
end