bob983 / hexo-multiauthor

11 stars 7 forks source link

Get a full list of authors from within a template #5

Open kbaley opened 8 years ago

kbaley commented 8 years ago

Is it possible to retrieve a complete list of authors within a template? For example, to list the authors on a site with links to their individual author pages.

bob983 commented 8 years ago

Hi @kbaley, let me have a look at it. It think it should be possible to fill a variable with all authors. Constructing an URL is easy, because it's just author/$author_id/

noraj commented 4 years ago

We need to add author/ in pagesArray with a layout to authors, so a theme author can add a authors layout where it iterates through all authors to generate the index.

https://github.com/bob983/hexo-multiauthor/pull/8

Else one need to create this file in the source folder author/index.md with content:

---
title: Authors
layout: "authors"
---