Module: OpenGraphHelper

Defined in:
app/helpers/open_graph_helper.rb

Instance Method Summary collapse

Instance Method Details

#open_graph_tags(subject) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'app/helpers/open_graph_helper.rb', line 2

def open_graph_tags(subject)
  %Q{
    <meta property="og:site_name" content="#{Organization.current.display_name}" />
    <meta property="og:title" content="#{h page_title(subject)}"/>
    <meta property="og:description" content="#{Organization.current.description}"/>
    <meta property="og:type" content="website"/>
    <meta property="og:image" content="#{Organization.current.open_graph_image_url}"/>
    <meta property="og:url" content="#{request.original_url}"/>
  }.html_safe
end