Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

How do you create an author page?

Solved by Aaron Dalton View solution

Started by Marco Cevoli 8 years ago · 1 replies · 982 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 TomW, 2 weeks ago
8 227 8 hours ago
Support · by alex, 2 months ago
8 667 23 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 5 days ago