aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/generator/template/darkfish/index.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/generator/template/darkfish/index.rhtml')
-rw-r--r--lib/rdoc/generator/template/darkfish/index.rhtml7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/rdoc/generator/template/darkfish/index.rhtml b/lib/rdoc/generator/template/darkfish/index.rhtml
index 7d1c74807b..13fa3dcc7f 100644
--- a/lib/rdoc/generator/template/darkfish/index.rhtml
+++ b/lib/rdoc/generator/template/darkfish/index.rhtml
@@ -13,11 +13,10 @@
</nav>
<main role="main">
-<% if @options.main_page and
+<%- if @options.main_page and
main_page = @files.find { |f| f.full_name == @options.main_page } then %>
<%= main_page.description %>
-<% else %>
+<%- else -%>
<p>This is the API documentation for <%= @title %>.
-<% end %>
+<%- end -%>
</main>
-