zeus.ugent.be/lib/helpers/tile_helper.rb
2017-02-08 00:51:46 +01:00

7 lines
224 B
Ruby

module TileHelper
def get_teaser(post)
# excerptize is part of the TextHelper, given by nanoc
# https://nanoc.ws/doc/reference/helpers/#text
excerptize(post.reps[:text].compiled_content, length: 300)
end
end