whoops, busted a helper
This commit is contained in:
parent
2ec2422b47
commit
043361674f
|
@ -1,5 +1,6 @@
|
||||||
Middleman.helpers do
|
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(' ')
|
params = params.map { |k,v| %Q{#{k}="#{v}"}}.join(' ')
|
||||||
%Q{<a #{params}>#{title}</a>}
|
%Q{<a #{params}>#{title}</a>}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue