 getNoHrefLink = (linkText)->
   "<a href='#'>#{linkText}  </a>"
 
-getSinglePageLink = (pageNumber, contentType, linkText=pageNumber)->
-  link = "<a href='#{uri.address}/#{contentType}?page=#{pageNumber}'>#{linkText}  </a>"
+getSinglePageLink = (pageNumber, linkText=pageNumber, route)->
+  link = "<a href='#{uri.address}/#{route}?page=#{pageNumber}'>#{linkText}  </a>"
   return link
 
 appendDecoratedTopic = (tag, queue)=>

  firstLink = prevLink = nextLink = lastLink = ""

  if currentPage > 1
    firstLink = getSinglePageLink 1, contentType, "First"
    prevLink  = getSinglePageLink (currentPage - 1), contentType, "Prev"

  if currentPage < numberOfPages
    lastLink  = getSinglePageLink numberOfPages, contentType, "Last"
    nextLink  = getSinglePageLink (currentPage + 1), contentType, "Next"

  pagination = firstLink + prevLink


        return callback null, fullPage
      daisy queue

getPagination = (currentPage, numberOfItems, route="")->
  # This is the number of adjacent link around current page.
  # E.g. let current page be 9, then pagination will look like this:
  # First Prev ... 4 5 6 7 8 9 10 11 12 13 14 ... Next Last
