From ce841ccd18187ef9e4dd2c0b4053bec464a9316f Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Mon, 7 Nov 2011 23:44:34 -0800 Subject: [PATCH] helper func --- lib/middleman/core_extensions/sitemap.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/middleman/core_extensions/sitemap.rb b/lib/middleman/core_extensions/sitemap.rb index a623afbd..b54831bd 100644 --- a/lib/middleman/core_extensions/sitemap.rb +++ b/lib/middleman/core_extensions/sitemap.rb @@ -76,6 +76,10 @@ module Middleman::CoreExtensions::Sitemap @map.keys end + def all_values + @map.values + end + def ignored_path?(path) path = path.sub(/^\//, "") ignored_paths.include?(path)