extends ../layouts/main
block content

  include components/announcement

  section.uk-section.uk-section-default.uk-section-small
    .uk-container
      h1 #{site.name} Announcements

      if Array.isArray(announcements) && (announcements.length > 0)
        ul.uk-list.uk-list-divider
          each announcement in announcements
            li
              +renderAnnouncement(announcement)
      else
        div There are no announcements.