mirror of
https://github.com/danog/sass-site.git
synced 2024-11-27 04:24:50 +01:00
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:
parent
c8979057d3
commit
90e254eccc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user