lib/middleman-blog/helpers.rb in middleman-blog-4.0.1 vs lib/middleman-blog/helpers.rb in middleman-blog-4.0.2

- old
+ new

@@ -128,11 +128,11 @@ limit = current_resource.data[:per_page] # "articles" local variable is populated by Calendar and Tag page generators # If it's not set then use the complete list of articles articles = meta[:locals]["articles"] || blog(blog_name).articles - + limit ? articles.first(limit) : articles end # Generate helpers to access the path to a custom collection. # @@ -157,6 +157,6 @@ def build_url(path) sitemap.find_resource_by_path(path).try(:url) end end end -end +end \ No newline at end of file