Add 'Edit this page' link to website/www footer

This commit is contained in:
Sam Handler 2015-09-24 16:47:14 -07:00
parent 33d602ba84
commit 094d8b89ef
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@
<li><a href="https://docs.vagrantup.com/">Documentation</a></li>
<li><a href="/about.html">About</a></li>
<li><a href="/support.html">Support</a></li>
<% if current_page.url != "/" %>
<% github_link = 'https://github.com/mitchellh/vagrant/blob/master/' + current_page.source_file.match(/website.*/)[0] %>
<li class="li-under"><a href="<%= github_link %>">Edit this page</a></li>
<% end %>
<a href="/downloads.html">
<li class="button inline-button">Download</li>
</a>