{{#getAuthor}} helper

{{#getAuthor}} is a helper used to retrieve author data regardless of the current context. To get several authors at once, use getAuthors.

Syntax:

{{#getAuthor AUTHOR_ID}}
...
{{/getAuthor}}

Alternative syntax:

{{#getAuthor "AUTHOR_USERNAME"}}
...
{{/getAuthor}}

Example:

{{#getAuthor 10}}
<a href="{{url}}">{{name}}</a>
{{/getAuthor}}

IMPORTANT: It requires availability of the @website.contentStructure global variable

Create your first website with Publii

Join thousands of creators who chose independence. Create content locally and publish lightning-fast, secure websites on your own terms.

Download Publii

Free and open source. Windows, macOS and Linux.

Read the getting started guide