parent
beeca433ae
commit
cbe7e3e80e
|
@ -88,6 +88,14 @@ module Jekyll
|
||||||
!(asset_file? || yaml_file?)
|
!(asset_file? || yaml_file?)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Determine whether the file should be placed into layouts.
|
||||||
|
#
|
||||||
|
# Returns false if the document is either an asset file or a yaml file,
|
||||||
|
# true otherwise.
|
||||||
|
def place_in_layout?
|
||||||
|
!(asset_file? || yaml_file?)
|
||||||
|
end
|
||||||
|
|
||||||
# The URL template where the document would be accessible.
|
# The URL template where the document would be accessible.
|
||||||
#
|
#
|
||||||
# Returns the URL template for the document.
|
# Returns the URL template for the document.
|
||||||
|
|
|
@ -47,11 +47,15 @@ module Jekyll
|
||||||
output = render_liquid(output, payload, info)
|
output = render_liquid(output, payload, info)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if document.place_in_layout?
|
||||||
place_in_layouts(
|
place_in_layouts(
|
||||||
convert(output),
|
convert(output),
|
||||||
payload,
|
payload,
|
||||||
info
|
info
|
||||||
)
|
)
|
||||||
|
else
|
||||||
|
convert(output)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Convert the given content using the converters which match this renderer's document.
|
# Convert the given content using the converters which match this renderer's document.
|
||||||
|
|
Loading…
Reference in New Issue