Method: EffectivePostsHelper#effective_posts_header_tags

Defined in:
app/helpers/effective_posts_helper.rb

#effective_posts_header_tagsObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'app/helpers/effective_posts_helper.rb', line 5

def effective_posts_header_tags
  return unless @post.present? && @post.kind_of?(Effective::Post)

  @effective_pages_og_type = 'article'

  tags = [
    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