zeus.ugent.be/lib/helpers/tile_helper.rb

8 lines
224 B
Ruby
Raw Normal View History

2017-02-07 23:30:11 +01:00
module TileHelper
def get_teaser(post)
2017-02-08 00:51:46 +01:00
# excerptize is part of the TextHelper, given by nanoc
# https://nanoc.ws/doc/reference/helpers/#text
excerptize(post.reps[:text].compiled_content, length: 300)
2017-02-07 23:30:11 +01:00
end
end