Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Fixed a bug w/ main page linkage if not specified. Not sure this is…

… the best solution.
  • Loading branch information...
commit f90c5ed4c67c40b5d022e2f689bd872a23c23d99 1 parent bd3ad60
Erik Hollensbe authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/hanna/hanna.rb
View
2  lib/hanna/hanna.rb
@@ -85,7 +85,7 @@ def write_static_files
# FIXME refactor
def generate_indexes
- @main_page_uri = @files.find { |f| f.name == @options.main_page }.path
+ @main_page_uri = @files.find { |f| f.name == @options.main_page }.path rescue ''
File.open(outjoin(INDEX_OUT), 'w') { |f| f << haml_file(templjoin(INDEX_PAGE)).to_html(binding) }
generate_index(FILE_INDEX_OUT, FILE_INDEX, 'File', { :files => @files})
Please sign in to comment.
Something went wrong with that request. Please try again.