Method: EffectivePostsHelper#effective_posts_header_tags
- Defined in:
- app/helpers/effective_posts_helper.rb
#effective_posts_header_tags ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/effective_posts_helper.rb', line 5 def return unless @post.present? && @post.kind_of?(Effective::Post) @effective_pages_og_type = 'article' = [ tag(:meta, itemprop: 'author', content: @post.user.to_s), tag(:meta, itemprop: 'publisher', content: @post.user.to_s), tag(:meta, itemprop: 'datePublised', content: @post.published_at.strftime('%FT%T%:z')), tag(:meta, itemprop: 'headline', content: @post.title) ].join("\n").html_safe end |