Skip to content

Commit f9b3974

Browse files
authored
Update checks_extend.rb
adding function for challenge_areas
1 parent bdb849f commit f9b3974

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

_plugins/checks_extend.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ def projects
2323
end
2424
end
2525

26+
def challenge_areas
27+
@challenge_areas ||= begin
28+
challenge_area_pages = @pages.site.select { |p| p['pagetype'] == 'challenge-area' }
29+
challenge_area_pages.map { |p| File.basename(p.name, '.*.') }.to_set
30+
end
31+
end
32+
2633
def ensure_array(hash, key)
2734
return unless hash.key? key
2835
return if hash[key].is_a? Array

0 commit comments

Comments
 (0)