# How to configure and use .Site.Author

**URL:** <https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682>\
**Category:** support\
**Created:** [July 14, 2016, 9:38pm UTC](https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682 "2016-07-14T21:38:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![pepper](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pepper/32/1855_2.png) [@pepper](https://discourse.gohugo.io/u/pepper)\
**Post date:** [July 14, 2016, 9:38pm UTC](https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682/1 "2016-07-14T21:38:30Z")

</div>

I noticed in the [documentation](https://gohugo.io/templates/variables#site-variables), that .Site.Author is a map of Authors specified in the `config.toml` file.

I also found [this class](https://github.com/spf13/hugo/blob/master/hugolib/author.go) which I think is supposed to be representing an author.

However, I can’t find an example of how to configure the list of authors, or how to the data in a template. Can someone please explain?

---

<div class="post-metadata">

**Author:** ![pepper](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pepper/32/1855_2.png) [@pepper](https://discourse.gohugo.io/u/pepper)\
**Post date:** [July 15, 2016, 9:19am UTC](https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682/2 "2016-07-15T09:19:02Z")

</div>

I’ve opened an issue 2282 on GitHub with what I think is related.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [July 15, 2016, 2:14pm UTC](https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682/3 "2016-07-15T14:14:03Z")

</div>

@DerekPerkins may help, but I’m not doing any work / creating any new GH issues about this until this is merged:

[https://github.com/spf13/hugo/pull/1850](https://github.com/spf13/hugo/pull/1850)

---

<div class="post-metadata">

**Author:** ![pepper](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pepper/32/1855_2.png) [@pepper](https://discourse.gohugo.io/u/pepper)\
**Post date:** [July 15, 2016, 3:05pm UTC](https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682/4 "2016-07-15T15:05:46Z")

</div>

Perfect. That was the missing link. I was just so shocked to see the author.go file in the repo, but not the rest of the support for using it.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [July 15, 2016, 3:31pm UTC](https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682/5 "2016-07-15T15:31:44Z")

</div>

Yes, the feature was started a while ago, but it is not documented because of its unknown state/likely to be changed.

---

<div class="post-metadata">

**Author:** ![pepper](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pepper/32/1855_2.png) [@pepper](https://discourse.gohugo.io/u/pepper)\
**Post date:** [July 15, 2016, 4:02pm UTC](https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682/6 "2016-07-15T16:02:18Z")

</div>

No problem. I can wait, or roll my own support in a non-standard way in a theme I am converting.

In the meantime, I’ve proposed a technical bridge between the core of Hugo and Themes. You can read more over here: [https://discuss.gohugo.io/t/theme-standardization-through-feature-support/3687](https://discuss.gohugo.io/t/theme-standardization-through-feature-support/3687)

---

<div class="post-metadata">

**Author:** ![DerekPerkins](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/derekperkins/32/124_2.png) [@DerekPerkins](https://discourse.gohugo.io/u/DerekPerkins)\
**Post date:** [July 15, 2016, 8:01pm UTC](https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682/7 "2016-07-15T20:01:09Z")

</div>

@pepper It’s pretty usable as it is right now. There’s some polish that needs to be added before formalizing it, but I was using it back in Feb just fine.

---

<div class="post-metadata">

**Author:** ![pepper](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pepper/32/1855_2.png) [@pepper](https://discourse.gohugo.io/u/pepper)\
**Post date:** [July 15, 2016, 8:14pm UTC](https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682/8 "2016-07-15T20:14:53Z")

</div>

Really? Can you give me an example of what a config.tml file would look like with mulitple authors?

Also, do you mean it is usable with or without your [Pull Request](https://github.com/spf13/hugo/pull/1850) having been merged?

---

<div class="post-metadata">

**Author:** ![DerekPerkins](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/derekperkins/32/124_2.png) [@DerekPerkins](https://discourse.gohugo.io/u/DerekPerkins)\
**Post date:** [July 15, 2016, 10:32pm UTC](https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682/9 "2016-07-15T22:32:51Z")

</div>

The PR would need to be merged, or if you built the binary from source, it’s not hard to merge in my PR yourself.

Here’s the directory layout with one file per author:

![](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/e/e625746ef131c51faa59a49998c4bcc0a2b92128.png)

Then here is what the individual file looks like:

```auto
given_name = "Derek"
family_name = "Perkins"
display_name = "Derek Perkins"
thumbnail = "img link"
image = "img link"
short_bio = "super short bio"
bio = "Here's Derek's awesome bio"
email = "derek@email.com"

[social]
	facebook	= "https://www.facebook.com/derekperkins"
	github = "https://github.com/derekperkins/"
	twitter = "https://twitter.com/derek_perkins"
	googleplus	= "https://plus.google.com/+DerekPerkins1"

[params]
   random = "whatever you want"

```

---

<div class="post-metadata">

**Author:** ![DerekPerkins](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/derekperkins/32/124_2.png) [@DerekPerkins](https://discourse.gohugo.io/u/DerekPerkins)\
**Post date:** [July 15, 2016, 10:37pm UTC](https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682/10 "2016-07-15T22:37:47Z")

</div>

Behind the scenes, it also tries to help standardize the actual social links. While the social networks have all standardized on some version of http(s) and/or www, people rarely respect those. The author package attempts to pull out the username, or even better, only have people add their username to the toml file, and then outputs the canonical social link.

---

<div class="post-metadata">

**Author:** ![hxrts](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hxrts/32/1189_2.png) [@hxrts](https://discourse.gohugo.io/u/hxrts)\
**Post date:** [July 16, 2016, 12:30am UTC](https://discourse.gohugo.io/t/how-to-configure-and-use-site-author/3682/11 "2016-07-16T00:30:55Z")

</div>

If the eventual roadmap includes collapsing nodes and pages into a single model with extensible features / links, then authors with their own custom pages could be treated a bit more elegantly. May be a ways off, but wondering if that’s a priority at all?
