minima icon indicating copy to clipboard operation
minima copied to clipboard

Adding authors to post

Open Atcold opened this issue 1 year ago • 2 comments

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.

Atcold avatar Aug 05 '24 18:08 Atcold

I think I got it.

author:
 - John Smith
 - Jane Doe

Not sure how to pass more info such as a website. Also, I understand that only the name field is displayed by the html above.

Atcold avatar Aug 05 '24 21:08 Atcold

I think I got it.


author:

 - John Smith

 - Jane Doe

Not sure how to pass more info such as a website.

Also, I understand that only the name field is displayed by the html above.

Hi @Atcold if you want to add more info you can do it in the same line, like so:

author:
   - John Smith <[email protected]>
   - Jane Doe <@janedoe>

JuanVqz avatar Feb 02 '25 14:02 JuanVqz