Author Attribution

To attribute content to author(s) first define some authors in the site settings:

[authors.tmpfs]
name = "Muji"
url = "https://tmpfs.org"

Afterwards authors can be referenced by their alias which in this example is tmpfs, see authors for the complete list of fields.

Global Authors

If you want to assign authors to all pages you can use the global page data in the site settings:

[authors.tmpfs]
name = "Muji"
url = "https://tmpfs.org"

[page]
authors = ["tmpfs"]

Page Authors

To assign author(s) to pages refer to them in the front matter:

+++
authors = ["tmpfs"]
+++

Template Data

Pages can access the entire authors list and also those attributed for the current page via authors:

{
  "all": {
    "tmpfs": {
      "alias": "tmpfs",
      "name": "Muji",
      "url": "https://tmpfs.org/"
    }
  },
  "attributed": [
    {
      "alias": "tmpfs",
      "name": "Muji",
      "url": "https://tmpfs.org/"
    }
  ]
}