# .Site.Author Usage?

**URL:** https://discourse.gohugo.io/t/site-author-usage/31459
**Category:** support
**Created:** [February 28, 2021, 12:17am UTC](https://discourse.gohugo.io/t/site-author-usage/31459 "2021-02-28T00:17:08Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)
#### Post date: [March 18, 2021, 5:05am UTC](https://discourse.gohugo.io/t/site-author-usage/31459/8 "2021-03-18T05:05:03Z")

</div>

Update 2024-03-31T13:59:45-07:00

The `.Site.Author` method and configuration key were deprecated in Hugo v0.124.0 and will be removed in a future release. Use a site parameter or an “authors” taxonomy instead.

* * *

The only thing that has been implemented is `.Site.Author` (singular).

In config.toml, you can **not** do this:

```auto
author = "John Doe"

```

Instead, do this:

```auto
[author]
name = "John Doe"
location = "San Francisco"

```

The key names (`name` and `location` in the example above) are irrelevant. Create your own as needed. Then access these values from a template:

```auto
{{ .Site.Author.name }}
{{ .Site.Author.location }}

```

You can also define many authors in config.toml:

```auto
[author]
  [author.john_doe]
    name = "John Doe"
    location = "San Francisco"
  [author.jane_smith]
    name = "Jane Smith"
    location = "New York"

```

Then access these values from a template:

```auto
{{ .Site.Author.john_doe.name }}
{{ .Site.Author.john_doe.location }}
{{ .Site.Author.jane_smith.name }}
{{ .Site.Author.jane_smith.location }}

```

So then in content you could do something like:

```auto
+++
title = "Test"
date = 2021-03-17T07:15:35-07:00
draft = false
author = "john_doe"
+++

```

Then access the details from a template:

```auto
{{ index .Site.Author .Params.author "name" }}
{{ index .Site.Author .Params.author "location" }}

```

---

_[View the full topic](https://discourse.gohugo.io/t/site-author-usage/31459)._
