mixin renderPostSummaryFull (post)
  div(uk-grid).uk-grid-small
    if post.image
      .uk-width-auto
        img(src= `/image/${post.image}`).uk-width-small
    .uk-width-expand
      .uk-text-large.uk-text-bold(style="line-height: 1em;")= post.title
      .uk-text-small.uk-text-muted
        div= post.summary
        div= moment(post.created).fromNow()

mixin renderPostSummary (post)
  div(uk-grid).uk-grid-small.uk-flex-middle
    div(class="uk-width-1-1 uk-width-expand")
      .uk-text-large.uk-text-bold(style="line-height: 1em;")= post.title
    div(class="uk-width-1-1 uk-width-auto")
      div= moment(post.created).fromNow()