collection: tiny optimization to #url_template

This commit is contained in:
Parker Moore 2016-01-04 18:17:51 -08:00
parent 935e5563e1
commit dab53a697b
1 changed files with 1 additions and 3 deletions

View File

@ -186,9 +186,7 @@ module Jekyll
# #
# Returns the URL template to render collection's documents at. # Returns the URL template to render collection's documents at.
def url_template def url_template
metadata.fetch('permalink') do metadata['permalink'] ||= Utils.add_permalink_suffix("/:collection/:path", site.permalink_style)
Utils.add_permalink_suffix("/:collection/:path", site.permalink_style)
end
end end
# Extract options for this collection from the site configuration. # Extract options for this collection from the site configuration.