 
       database.findAllLive(query, sorting).on 'add', (document) ->
         a = document.attributes
+        index = 1
         layout = 'doc'
         categoryName = 'tutorial'
         categoryTitle = 'Tutorial'


      database.findAllLive(query, sorting).on 'add', (document) ->
        a = document.attributes
        layout = 'doc'
        categoryName = 'community'
        categoryTitle = 'Community'

          categoryName
          categoryTitle
          editUrl
          index
        }).addUrl(urls)

    resources: (database) ->
