diff --git a/website/source/layouts/layout.erb b/website/source/layouts/layout.erb index 420883de6..a5cc83c5b 100644 --- a/website/source/layouts/layout.erb +++ b/website/source/layouts/layout.erb @@ -52,9 +52,16 @@
  • A HashiCorp project.
  • -
  • - Edit this page -
  • + <% # current_page.path does not have an extension, but + # current_page.source_file does. Also, we don't want to show + # this on the homepage. + if current_page.url != "/" + current_page_source = current_page.path + \ + current_page.source_file.split(current_page.path)[1] %> +
  • + Edit this page +
  • + <% end %> @@ -63,21 +70,6 @@ - + <%= partial "layouts/google-analytics.html" %>