Skip to content

Commit

Permalink
Merge pull request #248 from groundh0g/issue-113
Browse files Browse the repository at this point in the history
Tested without issue. No activity on #113 comments. Merging.
  • Loading branch information
groundh0g committed Mar 15, 2015
2 parents d974637 + 66cf229 commit dc7a95e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,10 @@ namespace :theme do
puts "Generating '#{theme_name}' layout: #{File.basename(filename)}"

open(File.join(CONFIG['layouts'], File.basename(filename)), 'w') do |page|
if File.basename(filename, ".html").downcase == "default"
page.puts "---"
page.puts File.read(settings_file) if File.exist?(settings_file)
page.puts "---"
else
page.puts "---"
page.puts "layout: default"
page.puts "---"
end
page.puts "---"
page.puts File.read(settings_file) if File.exist?(settings_file)
page.puts "layout: default" unless File.basename(filename, ".html").downcase == "default"
page.puts "---"
page.puts "{% include JB/setup %}"
page.puts "{% include themes/#{theme_name}/#{File.basename(filename)} %}"
end
Expand Down
2 changes: 2 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
theme :
name : bootstrap-3
layout: default
---
{% include JB/setup %}
Expand Down
2 changes: 2 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
theme :
name : bootstrap-3
layout: default
---
{% include JB/setup %}
Expand Down

0 comments on commit dc7a95e

Please sign in to comment.