diff --git a/lib/app.rb b/lib/app.rb index 6c15cb9f..85f53f33 100644 --- a/lib/app.rb +++ b/lib/app.rb @@ -98,6 +98,10 @@ class App < Sinatra::Application result end end + + def doc_index_page? + @doc && request.path == "/#{@doc['slug']}/" + end end before do diff --git a/public/robots.txt b/public/robots.txt index 5af3b66e..84b656bc 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -3,5 +3,3 @@ Disallow: /about Disallow: /news Disallow: /tips Disallow: /help -Disallow: /*/ -Allow: / diff --git a/views/index.erb b/views/index.erb index 48b63138..4bef031c 100644 --- a/views/index.erb +++ b/views/index.erb @@ -3,9 +3,9 @@
- + - + diff --git a/views/other.erb b/views/other.erb index c24f3131..b447b2f6 100644 --- a/views/other.erb +++ b/views/other.erb @@ -3,7 +3,7 @@ - + <% if doc_index_page? %><% else %><% end %>