extends ../layouts/main-sidebar
block content

  include ../components/page-sidebar

  article(dtp-page-id= page._id).content-block
    .uk-margin
      div(uk-grid)
        .uk-width-expand
          h1.article-title
            span
              i(class=`fas ${page.menu.icon}`)
            span.uk-margin-left= page.title
        if user && user.flags.isAdmin
          .uk-width-auto
            a(href=`/admin/page/${page._id}`).uk-button.dtp-button-text EDIT
    .uk-margin
      != page.content
