collection: tiny optimization to #url_template
This commit is contained in:
parent
935e5563e1
commit
dab53a697b
|
@ -186,9 +186,7 @@ module Jekyll
|
|||
#
|
||||
# Returns the URL template to render collection's documents at.
|
||||
def url_template
|
||||
metadata.fetch('permalink') do
|
||||
Utils.add_permalink_suffix("/:collection/:path", site.permalink_style)
|
||||
end
|
||||
metadata['permalink'] ||= Utils.add_permalink_suffix("/:collection/:path", site.permalink_style)
|
||||
end
|
||||
|
||||
# Extract options for this collection from the site configuration.
|
||||
|
|
Loading…
Reference in New Issue