diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 96212a5..3ec14ab 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -25,7 +25,8 @@ module ApplicationHelper html = html.gsub("{{site_name}}",(site.title rescue "")) html = html.gsub("%7B%7Blogo_url%7D%7D",(site.site_logo.url.nil? ? "/assets/site-logo.png" : site.site_logo.url)) if site.sitemap_menu_in_header - sub_menu_html = sub_menu_html + "Sitemap" + sitemap = Page.find_by_key(:sitemap).name rescue "Sitemap" + sub_menu_html = sub_menu_html + "#{sitemap}" end sub_menu_html = sub_menu_html.nil? ? "" : sub_menu_html html = html.gsub("{{header-data}}",sub_menu_html)