         title: collection.name
         description: collection.intro
         type: 'website'
-        image: "#{site.link}/file/#{collection._id}/#{collection.photo}"
+        image: "#{site.link}/file/#{collection._id}/#{collection.photo}" if collection.photo
     }
   else
     return {

      description: site.seo_description
      type: 'website'
      url: site.link
      image: blocks.site_intro?.photo
  }



        title: doc.title
        description: doc.intro
        type: 'article'
        image: "#{site.link}/file/#{doc._id}/#{doc.photo}" if doc.photo
        first_name: author?.name.split(' ')[0]
        last_name: author?.name.split(' ')[1]
        published: doc.published_at
