Skip to content

Commit

Permalink
Add a new function in support of product variables: set_title_no_spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
davebarnes97 committed Oct 11, 2019
1 parent 3dde4bf commit f50f0fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions master_middleman/bookbinder_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ def set_title(*args)
current_page.data.title= args.join(' ')
end

def set_title_no_spaces(*args)
current_page.data.title= args.join
end

def product_info
config[:product_info].fetch(template_key, {})
end
Expand Down

0 comments on commit f50f0fc

Please sign in to comment.