-page_title(@title) -# -@content.fields_for :project_info do |f| -# = render "/contents/show/" + @content.type.downcase, content: @content = render "/contents/show/" + @content.type.downcase, content: @content - content_for :headermetatags do - if @content.image.present? %meta{ :property => "og:image", :content => "#{@content.image.url}" }/ %meta{ :property => "og:title", :content => "#{@content.title}" }/ %meta{ :property => "og:description", :content => "#{ActionView::Base.full_sanitizer.sanitize(@content.content[0...299]).gsub(/\s\w+\s*$/,'...')}" }/ %meta{ :property => "description", :content => "#{ActionView::Base.full_sanitizer.sanitize(@content.content[0...299]).gsub(/\s\w+\s*$/,'...')}" }/ %meta{ :property => "og:HandheldFriendly", :content => "True" }/ %meta{ :property => "og:MobileOptimized", :content => "320" }/ %meta{ :property => "og:url", :content => root_url + t("activerecord.models.#{@content.type.underscore}.slug") + "/" + @content.slug }/ %meta{ :name => "twitter:card", :content => "summary_large_image" }/ %meta{ :name => "twitter:description", :content => "#{ActionView::Base.full_sanitizer.sanitize(@content.content[0...299]).gsub(/\s\w+\s*$/,'...')}" }/ %meta{ :name => "twitter:title", :content => "#{@content.title}" }/ %meta{ :name => "twitter:site", :content => "@abraji" }/ %meta{ :name => "twitter:image", :content => "#{@content.image.url}" }/ %meta{ :name => "twitter:creator", :content => "@abraji" }/