mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2025-02-28 08:21:52 -05:00
updated puts.rb to work with latest liquid and added different output based on character width
This commit is contained in:
parent
8c7b727abf
commit
8e41dd777b
@ -23,8 +23,14 @@ module Jekyll
|
|||||||
end
|
end
|
||||||
|
|
||||||
def render(context)
|
def render(context)
|
||||||
puts ">>> {% puts %} <<<"
|
# Use a block if label + output is wider than 80 characters
|
||||||
puts super.map(&:strip).join
|
if super.length > 69
|
||||||
|
puts "{% puts %}"
|
||||||
|
puts super
|
||||||
|
puts "{% endputs %}"
|
||||||
|
else
|
||||||
|
puts "{% puts %} #{super}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user