1
0
Fork 0
docsearch/docs/source/templates/redirects.erb
2018-02-07 10:56:52 +01:00

3 lines
No EOL
168 B
Text

<% redirects.each do |r| %>
<%= r[:from].gsub(/(.+)\/index\.html/, '\1').gsub('index.html', '') %> <%= "#{r[:to].gsub('/index.html', '').gsub(/\/$/, '')}/" %>
<% end %>