fix links to documentation from styleguide pages

The trailing slash on URLs like http://sass-lang.com/styleguide/code/ caused the link to Documentation to break. This removes the trailing slash from generated URLs. P.S. First real commit; be gentle!
This commit is contained in:
dajo 2014-11-14 13:17:23 -06:00
parent c8979057d3
commit 90e254eccc

View File

@ -53,7 +53,7 @@
- unless page.url =~ /assets/
- unless page.data.title == "Style Guide"
- unless page.data.title == "Responsive Test"
%li= link_to "#{page.data.title}", "#{root_url}#{page.url}"
%li= link_to "#{page.data.title}", "#{root_url}#{page.url.gsub!(/(\/)+$/,'')}"
- if content_for?(:complementary)