class Tumblargh::Renderer::Blocks::Photo
Public Instance Methods
photo_alt()
click to toggle source
# File lib/tumblargh/renderer/blocks.rb, line 65 def photo_alt strip_html(context.caption) end
should_render?()
click to toggle source
# File lib/tumblargh/renderer/blocks.rb, line 61 def should_render? context_post.type == 'photo' && context_post.photos.size == 1 end