Primary-author is empty

primary-author outputs nothing. I am using the following code. How can I access the first author?

<div class="author">
    <a href="{{url}}">{{name}}</a>
    <span class="bio">{{bio}}</span>

Hi @mkn,

You need to be in the post context for this to work.
So on a homepage listing posts:

{{#foreach posts}}
  ..your code

Or if you are in a post then:

  ..your code

Maybe you can share the larger context of where you are trying to implement it.