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 9, 2019
1 parent 8a860cc commit 9118280
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 9118280

Please sign in to comment.