Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

How do you create an author page?

Solved by Aaron Dalton View solution

Started by Marco Cevoli 8 years ago · 1 replies · 828 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 complanar, 6 days ago
6 137 12 hours ago
Support · by Rick Beebe, 6 days ago
2 99 2 days ago
Support · by blu3prince, 3 days ago
0 50 3 days ago
Support · by alex, 4 days ago
2 91 3 days ago
Support · by Marcel, 2 weeks ago
1 142 3 days ago