extends ../layouts/main
block content

  include ../components/pagination-bar

  section.uk-section.uk-section-default
    .uk-container

      article.uk-article
        .uk-margin
          h1.uk-article-title.uk-margin-remove #{site.name} News Feed
          .uk-text-bold #{formatCount(newsroom.totalFeedEntryCount)} articles indexed by #{site.name} in one chronological feed.

        .uk-margin
          if Array.isArray(newsroom.entries) && (newsroom.entries.length > 0)
            ul.uk-list.uk-list-divider
              each entry in newsroom.entries
                li
                  .uk-text-large.uk-text-bold.uk-margin-small
                    a(href= entry.link, target="shing_reader")= entry.title
                  .uk-margin-small= entry.description
                  .uk-text-small source: #[a(href= entry.feed.link, target="_blank")= entry.feed.title]
          else
            div There are no news feed entries.
        
        .uk-margin
          +renderPaginationBar(`/newsroom/feed`, newsroom.totalFeedEntryCount)