Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
11
app/helpers/sitemap_helper.rb
Normal file
11
app/helpers/sitemap_helper.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
module SitemapHelper
|
||||
|
||||
def link(path, default_title)
|
||||
custom_title = @custom_titles.select {|a| a.path == path }.last
|
||||
if custom_title
|
||||
link_to(custom_title.title, path)
|
||||
else
|
||||
link_to(default_title, path)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user