   data: ->
     posts: Post.where {},
       sort: publishedAt: -1
+  onAfterAction: ->
+    if not Meteor.isClient
+      return
+    if SEO
+      title = 'Blog'
+      if Blog.settings.title
+        title += " | #{Blog.settings.title}"
+      description = if Blog.settings.description then Blog.settings.description else ''
+      SEO.set
+        title: title
+        meta:
+          description: description
+        og:
+          title: title
+          description: description
+      return
 
 # BLOG TAG
 

  ]
  fastRender: true
  data: ->
    posts: Post.where
      tags: @params.tag
    ,
      sort: publishedAt: -1

# SHOW BLOG


  ]
  data: ->
    Post.first slug: @params.slug
  onAfterAction: ->
    if not Meteor.isClient
      return
    if SEO
      title = @data().title
      if Blog.settings.title
        title += " | #{Blog.settings.title}"
      description = if @data().metaDesc then @data().metaDesc else @data().excerpt
      slug = @data().slug
      SEO.set
        title: title
        meta:
          description: description
        og:
          title: title
          description: description
      return

# BLOG ADMIN INDEX

