Skip to content

Commit

Permalink
up scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldb committed Feb 6, 2014
1 parent 47f651b commit 2597be0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion _layouts/book.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset='utf-8'>
<title>{{ site.title }}</title>
<link href='/css/book.css" rel='stylesheet'>
<link rel='stylesheet' href='css/book.css'>
</head>
<body>
<div id='content'>
Expand Down
16 changes: 8 additions & 8 deletions _scripts/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

#####
# todo/fix: use constant to set ./_pages - output (root) folder for generated pages

# todo/fix: use constant to set layout e.g. book


####################################
Expand All @@ -84,7 +84,7 @@
File.open( "_pages/#{year}.md", 'w+') do |file|
file.write render_whats_news_in_year( year, frontmatter: <<EOS )
---
layout: default
layout: book
title: What's News in #{year}?
permalink: /#{year}.html
---
Expand All @@ -102,7 +102,7 @@ def build_book
File.open( '_pages/breweries.md', 'w+') do |file|
file.write render_idx_breweries( frontmatter: <<EOS )
---
layout: default
layout: book
title: Breweries Index
permalink: /breweries.html
---
Expand All @@ -116,7 +116,7 @@ def build_book
File.open( '_pages/beers.md', 'w+') do |file|
file.write render_idx_beers( frontmatter: <<EOS )
---
layout: default
layout: book
title: Beers Index
permalink: /beers.html
---
Expand All @@ -130,7 +130,7 @@ def build_book
File.open( '_pages/brands.md', 'w+') do |file|
file.write render_idx_brands( frontmatter: <<EOS )
---
layout: default
layout: book
title: Brands Index
permalink: /brands.html
---
Expand All @@ -144,7 +144,7 @@ def build_book
File.open( '_pages/index.md', 'w+') do |file|
file.write render_toc( frontmatter: <<EOS )
---
layout: default
layout: book
title: Contents
permalink: /index.html
---
Expand All @@ -170,7 +170,7 @@ def build_book
File.open( "_pages/#{path}", 'w+') do |file|
file.write render_country( country, frontmatter: <<EOS )
---
layout: default
layout: book
title: #{country.title} (#{country.code})
permalink: /#{country.key}.html
---
Expand All @@ -191,7 +191,7 @@ def build_book_all_in_one

book_text = <<EOS
---
layout: default
layout: book
title: Contents
permalink: /book.html
---
Expand Down

0 comments on commit 2597be0

Please sign in to comment.