Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding authors to post #794

Open
Atcold opened this issue Aug 5, 2024 · 1 comment
Open

Adding authors to post #794

Atcold opened this issue Aug 5, 2024 · 1 comment

Comments

@Atcold
Copy link

Atcold commented Aug 5, 2024

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: "john.smith@foobar.com"

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

@Atcold
Copy link
Author

Atcold commented Aug 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant