summaryrefslogtreecommitdiff
path: root/tmpl/page.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/page.html.erb')
-rw-r--r--tmpl/page.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmpl/page.html.erb b/tmpl/page.html.erb
index dae08eb..fb5ddaa 100644
--- a/tmpl/page.html.erb
+++ b/tmpl/page.html.erb
@@ -29,7 +29,7 @@
</article>
<footer>
<%= atom_rights %>
- <p>Page source: <a href="<%= url.route_to(local_srcurl) %>"><%= File.basename(local_srcurl.to_s) %></a></p>
+ <% if local_srcurl %><p>Page source: <a href="<%= url.route_to(local_srcurl) %>"><%= File.basename(local_srcurl.to_s) %></a></p><% end %>
<p>Website source: <a href="https://git.andrewdm.me/www.git">www.git</a></p>
</footer>
</body>