From a1b39840bbf00d2acf1f5c84213d6e5692dfe0a4 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Wed, 6 Jan 2016 10:13:13 -0800 Subject: [PATCH] Revert change to Collection#url_template which caused test breakage. Reverts dab53a697b8f58db9bef819dc9b6f5c3a592fe56 --- lib/jekyll/collection.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/collection.rb b/lib/jekyll/collection.rb index c7607171..f0e3333d 100644 --- a/lib/jekyll/collection.rb +++ b/lib/jekyll/collection.rb @@ -186,7 +186,9 @@ module Jekyll # # Returns the URL template to render collection's documents at. def url_template - metadata['permalink'] ||= Utils.add_permalink_suffix("/:collection/:path", site.permalink_style) + @url_template ||= metadata.fetch('permalink') do + Utils.add_permalink_suffix("/:collection/:path", site.permalink_style) + end end # Extract options for this collection from the site configuration.