Skip to content

Commit

Permalink
Vendor foundation js
Browse files Browse the repository at this point in the history
-- Unfortunately, due to the non-standard naming of the foundation
   gem asset directories, middleman-sprockets doesn't know how
   to find them. I was able to get it working during development
   but not for the build, so instead we need to vendor these
   assets directly in our javascripts directory
-- Minor changes to layout
  • Loading branch information
mattolson committed Jun 18, 2013
1 parent 7abe280 commit 2af1888
Show file tree
Hide file tree
Showing 7 changed files with 11,828 additions and 7 deletions.
13 changes: 11 additions & 2 deletions config.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
require 'kramdown'
require 'extensions/sitemap.rb'
require 'zurb-foundation'

activate :sprockets
require 'compass'
require 'zurb-foundation'

# Unfortunately ZURB puts its assets in unconventional paths, so we need to
# manually add these paths for sprockets to find them. However, the following
# only works within the middleman server but there doesn't seem to be any
# way to get sprockets to export the vendored assets within the foundation
# gem to the build directory because of the non-standard naming of the directories.
# Keeping this here for reference though.
#Gem.loaded_specs.values.map(&:full_gem_path).each do |root_path|
# ["js", "scss"].map {|p| File.join(root_path, p) }.select {|p| File.directory?(p) }.each {|p| sprockets.append_path(p)}
#end

###
## Blog settings
Expand Down
1 change: 1 addition & 0 deletions source/blog/2012-01-01-example-article.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce eget lorem quis e
Suspendisse vitae turpis et enim feugiat ullamcorper at non turpis. Vestibulum posuere, eros eget vulputate faucibus, metus massa congue velit, non pulvinar tortor risus
ut enim. Pellentesque lectus ligula, vehicula luctus volutpat in, convallis quis ante. Proin non odio eu orci feugiat feugiat. Mauris molestie nisi non venenatis molestie.
Pellentesque facilisis eros ut ultrices ultrices.
READMORE

Nam commodo hendrerit scelerisque. Ut tristique lacus lobortis neque rhoncus, ut tempor enim mattis. Suspendisse vel eleifend quam. Suspendisse luctus nisl eget elit euismod,
in sodales metus blandit. Mauris nisi eros, venenatis a sagittis id, dictum id arcu. Nam tempus pulvinar ante at semper. Donec tincidunt dolor ac sem tempor laoreet.
Expand Down
4 changes: 2 additions & 2 deletions source/blog/_article.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<% end %>

<% if digest && article.summary.length < article.body.length %>
<%= link_to 'Read more &rarr;', article.url, :class => 'secondary button radius' %>
<p class="readmore"><%= link_to 'Read more &rarr;', article.url, :class => 'secondary button radius' %></p>
<% end %>

<% unless digest %>
Expand All @@ -26,7 +26,7 @@

<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '';
var disqus_shortname = 'TODO_REPLACE_ME';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
Expand Down
4 changes: 4 additions & 0 deletions source/javascripts/vendor/custom.modernizr.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2af1888

Please sign in to comment.