mixin renderPostAuthorCredit (author)
  div(uk-grid).uk-grid-small
    .uk-width-auto
      +renderProfileIcon(author)
    .uk-width-expand
      .uk-margin-small
        div(uk-grid).uk-flex-middle
          .uk-width-expand
            - var userUrl = !!author.coreUserId ? `/user/core/${author._id}` : `/user/${author._id}`;
            a(href= userUrl, title="View member profile")
              .uk-text-bold(style="line-height: 1em;")= author.displayName || author.username
          .uk-width-auto
            .uk-text-small.uk-text-muted(style="line-height: 1em;")
              if author.coreUserId
                a(href=`${process.env.DTP_CORE_AUTH_SCHEME}://${author.core.meta.domain}/user/${author.coreUserId}`)= author.core.meta.name
              else
                a(href= "/")= site.name
      .uk-text-small= author.bio