extends ../../layouts/main-sidebar
block content

  include ../../components/pagination-bar
  include components/list

  div(uk-grid).uk-flex-expand
    .uk-width-expand
      h3.uk-margin-remove= `Posts by ${author.username}`
        if Array.isArray(posts) && (posts.length > 0)
          ul.uk-list.uk-list-divider
            each post in posts
              li
                +renderPostSummaryFull(post)
            .uk-card-footer
              +renderPaginationBar(`/post/author/${author.username}`, posts.length )