lib/generators/scrivito/install/templates/app/views/page/index.html.erb in scrivito_sdk-0.30.0.rc1 vs lib/generators/scrivito/install/templates/app/views/page/index.html.erb in scrivito_sdk-0.30.0
- old
+ new
@@ -1,10 +1,10 @@
<div>
<p><%= link_to 'Home', scrivito_path(Obj.homepage) %></p>
<%= scrivito_tag_list :ul, Obj.homepage, :toclist do |list, page| %>
<%= list.tag :li do %>
- <%= link_to page[:title].presence || '(Untitled)', scrivito_path(page) %>
+ <%= link_to page.display_title, scrivito_path(page) %>
<% end %>
<% end %>
<% if Obj.homepage.toclist.empty? && scrivito_in_editable_view? %>
<p>(Hint: Click on the Scrivito icon to the right to create the first subpage.)</p>