diff --git a/lib/gollum/frontend/app.rb b/lib/gollum/frontend/app.rb index 49687403..f61ea6b5 100644 --- a/lib/gollum/frontend/app.rb +++ b/lib/gollum/frontend/app.rb @@ -169,6 +169,13 @@ module Precious mustache :search end + get '/pages' do + wiki = Gollum::Wiki.new(settings.gollum_path, settings.wiki_options) + @results = wiki.pages + @ref = wiki.ref + mustache :pages + end + get '/*' do show_page_or_file(params[:splat].first) end diff --git a/lib/gollum/frontend/templates/page.mustache b/lib/gollum/frontend/templates/page.mustache index b93dafd3..0cf7a24b 100755 --- a/lib/gollum/frontend/templates/page.mustache +++ b/lib/gollum/frontend/templates/page.mustache @@ -2,6 +2,8 @@