extends ../layouts/main
block content

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

      h1 #{site.name} Newsletters

      if Array.isArray(newsletters) && (newsletters.length > 0)
        ul.uk-list
          each newsletter of newsletters
            li
              a(href=`/newsletter/${newsletter._id}`).uk-link-reset= newsletter.title
      else
        div There are no newsletters at this time. Please check back later.