This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// nested menu | |
$items = $pages->visible(); | |
// only show the menu if items are available | |
if($items->count() > 0): | |
?> | |
<!-- Brand and toggle get grouped for better mobile display --> | |
<?php endif ?> | |
</div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Crashlog created at 2014-04-10 12:59:21 +0200 | |
===== MESSAGE: | |
LoadError: cannot load such file -- nokogiri | |
Make sure the gem is added to Gemfile and run `bundle install`. | |
===== COMPILATION STACK: | |
- [item] / (rep default) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you have OpenSSL installed, we recommend updating | |
# the following line to use "https" | |
source 'http://rubygems.org' | |
gem "middleman", "~>3.3.2" | |
# Live-reloading plugin | |
gem "middleman-livereload", "~> 3.1.0" | |
# For faster file watcher updates on Windows: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError at /journal/2014/daily-show-with-jon-steward/ | |
undefined method `to_sym' for nil:NilClass | |
Ruby /Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/core_extensions/rendering.rb: in render_individual_file, line 230 | |
Web GET localhost/journal/2014/daily-show-with-jon-steward/ | |
Jump to: | |
GETPOSTCookiesENV | |
Traceback (innermost first) | |
/Users/timgauthier/Sites/www/middleman_tutorial/vendor/bundle/ruby/2.0.0/gems/middleman-core-3.3.2/lib/middleman-core/core_extensions/rendering.rb: in render_individual_file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% (page_number - num_pages .. page_number + num_pages).select{|i| i > 0 && i <= num_pages}.each do |i| %> | |
<% if i == page_number %> | |
<li> | |
<span class="active"> | |
<%= i %> | |
</span> | |
</li> | |
<% else %> |