whoops, busted a helper
This commit is contained in:
parent
2ec2422b47
commit
043361674f
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
Middleman.helpers do
|
||||
def link_to(title, url="#", params={ :href => url })
|
||||
def link_to(title, url="#", params={})
|
||||
params.merge!(:href => url)
|
||||
params = params.map { |k,v| %Q{#{k}="#{v}"}}.join(' ')
|
||||
%Q{<a #{params}>#{title}</a>}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue