Skip to content

Adding authors to post #794

@Atcold

Description

@Atcold

Perhaps I'm slow… but I cannot figure out how to add two authors to a post I'm writing.
In _layouts/post.html I can see the following:

{%- if page.author -%}
  • {% for author in page.author %}
    <span itemprop="author" itemscope itemtype="http://schema.org/Person">
      <span class="p-author h-card" itemprop="name">{{ author }}</span></span>
      {%- if forloop.last == false %}, {% endif -%}
  {% endfor %}
{%- endif -%}</p>

but it's a little unclear how I'm supposed to pass the authors info in the page header.
For example, the following added to the top of my markdown file does not work:

author:
  name: John Smith
  email: "[email protected]"

Additionally, I would like to specify two such authors.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions