Commit 7b1affd4 authored by Phil Hughes's avatar Phil Hughes

use `.last` instead

parent 1663587c
...@@ -5,7 +5,7 @@ module PageLayoutHelper ...@@ -5,7 +5,7 @@ module PageLayoutHelper
@page_title.push(*titles.compact) if titles.any? @page_title.push(*titles.compact) if titles.any?
if show_new_nav? && titles.any? && !defined?(@breadcrumb_title) if show_new_nav? && titles.any? && !defined?(@breadcrumb_title)
@breadcrumb_title = @page_title[-1] @breadcrumb_title = @page_title.last
end end
# Segments are seperated by middot # Segments are seperated by middot
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment