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
|
||||
|
||||
def render(context)
|
||||
puts ">>> {% puts %} <<<"
|
||||
puts super.map(&:strip).join
|
||||
# Use a block if label + output is wider than 80 characters
|
||||
if super.length > 69
|
||||
puts "{% puts %}"
|
||||
puts super
|
||||
puts "{% endputs %}"
|
||||
else
|
||||
puts "{% puts %} #{super}"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user