Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Commit

Permalink
Add in google drive gem to load in faq from google sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeaty committed Jun 25, 2015
1 parent 668de48 commit 9d2eed2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -19,3 +19,6 @@

# Ignore Gemfile.lock
Gemfile.lock

# Ignore google drive cache
google_drive_cache/
4 changes: 4 additions & 0 deletions Gemfile
Expand Up @@ -2,12 +2,16 @@
# the following line to use "https"
source 'http://rubygems.org'

ruby "2.1.4"

gem "middleman", "~>3.3.5"

gem "middleman-bourbon"

gem "neat"

gem 'middleman-google_drive'

# Live-reloading plugin
gem "middleman-livereload", "~> 3.1.0"

Expand Down
2 changes: 2 additions & 0 deletions config.rb
Expand Up @@ -6,6 +6,8 @@
# Activate extension for Bourbon Sass mixins
activate :bourbon

activate :google_drive, load_sheets: ENV['GOOGLE_DRIVE_KEY']

set :css_dir, 'stylesheets'

set :js_dir, 'javascripts'
Expand Down
6 changes: 3 additions & 3 deletions source/faq.html.erb
Expand Up @@ -15,8 +15,8 @@ title: Frequently Asked Questions

<div class="main">
<h3>Frequently Asked Questions</h3>
<% data.faq.each do |q| %>
<h4><%= q.question %></h4>
<p><%= q.answer %></p>
<% data.FAQ.each do |q| %>
<h4><%= q['question'] %></h4>
<p><%= q['answer'] %></p>
<% end %>
</div>

0 comments on commit 9d2eed2

Please sign in to comment.