Skip to content

Commit

Permalink
ERB in Markdown. Bleh. But need to get asset paths right.
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed May 11, 2019
1 parent 0a1941b commit d03909e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/documents/sponsors/culture-amp.markdown
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Culture Amp
## Emerald Sponsor

<img src="/assets/sponsors/culture-amp.png" class="sponsor-logo" />
<%= image_tag "sponsors/culture-amp.png", :class => "sponsor-logo" %>

[Culture Amp](https://www.cultureamp.com/) is a Melbourne-based people analytics platform that uses data to drive change in company cultures, helping some of the world's most innovative companies including Airbnb, Slack, Adobe, Warby Parker, Eventbrite and Etsy. Culture Amp was founded by four engineers in 2011, and was bootstrapped before it took series A funding in February 2015, growing from 15 to 50 people in that time. We have offices in Melbourne, San Francisco and New York. We're also a culture-first company, which means we try and "sample our own home brew" using our own platform to put culture and people at the heart of all our decisions.
4 changes: 2 additions & 2 deletions app/documents/sponsors/envato.markdown
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Envato
## Emerald Sponsor

<img src="/assets/sponsors/envato.png" class="sponsor-logo" />
<img src="/assets/sponsors/envato-out.png", class="sponsor-logo" />
<%= image_tag "sponsors/envato.png", :class => "sponsor-logo" %>
<%= image_tag "sponsors/envato-out.png", :class => "sponsor-logo" %>

Headquartered in Melbourne, Australia, [Envato](http://www.envato.com) is the leading marketplace for creative assets and creative people. With more than 300 staff and contractors worldwide, we've helped a community of creative sellers earn more than [$400 Million](http://www.startupsmart.com.au/advice/growth/melbourne-startup-envato-reaches-a-major-milestone-how-it-got-there-and-what-comes-next/). Millions of people around the world choose our marketplace, studio and courses to buy files, hire freelancers, or learn the skills needed to build websites, videos, apps, graphics and more. Recently, JobAdvisor awarded us the title of Australia's Coolest Company for Women ([2015](http://inside.envato.com/envato-coolest-company-for-women/) and [2016](http://www.searchparty.com/blog/coolest-companies-winners-2016/)). We were also named as one of the Best Places to Work in Australia in the [2015](http://press.envato.com/109596-envato-named-one-of-2015-s-best-places-to-work) and [2016](https://envato.com/blog/best-places-work-australia-2016-envatos-17/) BRW Awards. Envato have an LGBTI and Allies network group, called Out Envato, who promote inclusivity and awareness to our employees. We strive to be a champion for LGBTI in the global tech community and also run a regular meetup. Check out more about what it's like to work at Envato at [https://envato.com/careers/](https://envato.com/careers/)
2 changes: 1 addition & 1 deletion app/documents/sponsors/lookahead.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<p>
<a href="https://www.lookahead.com.au/" class="sponsor-logo-no-border">
<img src="/assets/sponsors/lookahead.jpg" class="sponsor-logo" />
<%= image_tag "sponsors/lookahead.jpg", :class => "sponsor-logo" %>
</a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion app/documents/sponsors/twilio.markdown
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Twilio
## Sapphire Sponsor

<img src="/assets/sponsors/twilio.png" class="sponsor-logo" />
<%= image_tag "sponsors/twilio.png", :class => "sponsor-logo" %>

Twilio has democratized communications channels like voice, text, chat, video, and email by virtualizing the world’s communications infrastructure through APIs that are simple enough for any developer to use, yet robust enough to power the world’s most demanding applications.

Expand Down
7 changes: 4 additions & 3 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ def committee
end

def document_markdown_to_html(name)
markdown.render(
File.read(Rails.root.join('app', 'documents', "#{name}.markdown"))
).strip.html_safe
input = File.read Rails.root.join('app', 'documents', "#{name}.markdown")
markup = render :inline => input

markdown.render(markup).strip.html_safe
end

def link_to_external(name = nil, options = nil, html_options = {}, &block)
Expand Down

0 comments on commit d03909e

Please sign in to comment.