Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

How do you create an author page?

Solved by Aaron Dalton View solution

Started by Marco Cevoli 8 years ago · 1 replies · 797 views
8 years ago

Hi,
I would like to know how you can create an author's page showing:

  • author's bio
  • author's photo
  • latest articles by this author

So far, I've added author: John Doe to the frontmatter and

TWIG
{% if page.header.author %} 
<span class="author">{{ "AUTHOR"|t }}: {{ page.header.author }}</span>
{% endif %}

to
/public_html/user/themes/mytheme/templates/partials/blog_item.html.twig
so that the author name, if any, shows up in the blog post.

I'd like to add a <a href> to this part, like the pages that Grav creates for tags, but I don't know where to start.

Any help will be appreciated. TIA.

Suggested topics

Topic Participants Replies Views Activity
Support · by Paul Hodges, 4 weeks ago
19 483 5 days ago
Support · by Lauw, 7 days ago
2 99 6 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago