Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

old startups constant and helper

startup list partial
  • Loading branch information...
commit cf8299a7fd872631596ab82f4c3d36fe7445fee1 1 parent 5563e56
@te-chris authored
View
36 config.rb
@@ -54,6 +54,36 @@
end
Middleman::Application.set(:startups, hits)
+
+ old_startups = [
+ "77Pieces",
+ "ApeForest",
+ "Bella Builder",
+ "Destination Content",
+ "Down the Road",
+ "EFTPlus",
+ "Forusers",
+ "Graduate Factory",
+ "HPSport",
+ "HomeHub",
+ "Loop Solutions",
+ "Mobilista",
+ "OceanMarkets",
+ "OceanBrowser",
+ "Ohso",
+ "ParkHawk",
+ "PixoPoint",
+ "Potluck Palace",
+ "Room4Rent",
+ "Splashroom Media",
+ "Too Hard Basket",
+ "UnitLink",
+ "Virtuoso Online",
+ "Worknow",
+ "Xplrnz/iVisit",
+ ]
+
+ Middleman::Application.set(:old_startups, old_startups)
end
@@ -66,11 +96,15 @@ def startup_list
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"
+ ret_val[:logo_grey] = h.path[0..-6] + "/logo-grey.png"
attrs.push ret_val
end
return attrs
end
+
+ def old_startups
+ Middleman::Application.defaults[:old_startups]
+ end
end
set :css_dir, 'stylesheets'
View
7 source/_our_startups.html.haml
@@ -0,0 +1,7 @@
+- startup_list.each do |s|
+ .startups-smashbox
+ .starup-image
+ %a{:href => s[:uri] }
+ = image_tag s[:logo_grey]
+ .startup-name
+ %p= s[:title]
View
8 source/index.html.haml
@@ -45,11 +45,7 @@ title: Welcome to Middleman
Google Map Here
.startups.home-section.container
%h2 Our Startups
- %p
- %a.startup-link.startup-link-authenticaly_uncool
- .logo-container
- %img{:href => 'twitter-icon.png'}
- Authentically Uncool Marketing
+ = partial 'our_startups'
%h3 Alumni
.network.home-section.container
%h2 Network
@@ -61,4 +57,4 @@ title: Welcome to Middleman
%li Build strong networks with which to conduct and grow business
%li Become thought and business leaders through innovation
%li Contribute our talents and skills to the local community
- %p The Distiller provides national "hotdesk" opportunities for members of our network. Our "open door" policy allow students, individuals, businesses, and other interested parties to to intermingle with entrepreneurs, and tap resources of our community.
+ %p The Distiller provides national "hotdesk" opportunities for members of our network. Our "open door" policy allow students, individuals, businesses, and other interested parties to to intermingle with entrepreneurs, and tap resources of our community.
Please sign in to comment.
Something went wrong with that request. Please try again.