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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

How do you create an author page?

Solved by Aaron Dalton View solution

Started by Marco Cevoli 8 years ago · 1 replies · 687 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 Thomas, 1 week ago
2 56 13 hours ago
Support · by Anna, 3 days ago
2 61 16 hours ago
Support · by Justin Young, 17 hours ago
1 32 17 hours ago
Support · by Duc , 1 week ago
2 66 5 days ago
Support · by Colin Hume, 1 week ago
2 59 5 days ago