mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 16:51:36 +02:00
fix up file uris/uri path code
This commit is contained in:
parent
1794a4bcba
commit
dee9128cb3
4 changed files with 23 additions and 13 deletions
|
@ -98,7 +98,7 @@
|
|||
<% if file[:is_directory] %>
|
||||
<a class="link-overlay" href="?dir=<%= Rack::Utils.escape file[:path] %>" title="View <%= file[:path] %>"></a>
|
||||
<% else %>
|
||||
<a class="link-overlay" href="<%= current_site.file_uri Rack::Utils.escape(file[:path]) %>" title="View <%= file[:path] == '/index.html' ? 'your site index' : file[:path] %>" target="_blank"></a>
|
||||
<a class="link-overlay" href="<%= file[:uri] %>" title="View <%= file[:path] %>" target="_blank"></a>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue