Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

startup list helper

fix red gorilla typo
  • Loading branch information...
commit 13c9b0e24fa17bd6b6d38ea85ba08688e74b57c2 1 parent a73d090
@te-chris authored
Showing with 27 additions and 1 deletion.
  1. +26 −0 config.rb
  2. +1 −1  source/startups/red_gorilla.md
View
26 config.rb
@@ -46,6 +46,32 @@
# "Helping"
# end
# end
+ready do
+ hits = []
+
+ sitemap.resources.select { |s| s.path.include?("startups") && !s.path.include?("images") }.each do |p|
+ hits.push p
+ end
+
+ Middleman::Application.set(:startups, hits)
+end
+
+
+helpers do
+ def startup_list
+ hits = Middleman::Application.defaults[:startups]
+ attrs = []
+ hits.each do |h|
+ ret_val = {}
+ ret_val[:uri] = h.path
+ ret_val[:title] = h.metadata[:page]["title"]
+ ret_val[:logo] = h.path[0..-6] + "/logo.png"
+ ret_val[:logo_grey] = h.path[0..-6] + "/logo_grey.png"
+ attrs.push ret_val
+ end
+ return attrs
+ end
+end
set :css_dir, 'stylesheets'
View
2  source/startups/red_gorilla.md
@@ -7,7 +7,7 @@ founders:
- Cecilia Wong
contact_url: mailto:accounts@redgorilla.co.nz
home_url: http://redgorilla.co.nz
---
+---
Cool. Creative. Innovative. Passionate. Experienced. Just a few of the many adjectives that are used to describe the Red Gorilla team.
What we do
Please sign in to comment.
Something went wrong with that request. Please try again.