# Displaying author and date in content

**URL:** <https://discourse.gohugo.io/t/displaying-author-and-date-in-content/34505>\
**Category:** Using Themes\
**Created:** [August 29, 2021, 9:33pm UTC](https://discourse.gohugo.io/t/displaying-author-and-date-in-content/34505 "2021-08-29T21:33:53Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![McShelby](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/mcshelby/32/15112_2.png) [@McShelby](https://discourse.gohugo.io/u/McShelby)\
**Post date:** [August 30, 2021, 3:20pm UTC](https://discourse.gohugo.io/t/displaying-author-and-date-in-content/34505/6 "2021-08-30T15:20:13Z")

</div>

Hey @jehoshua7, partials aren’t well documented at the moment. Addtionally, the content partial was newly introduced with the last release.

Create a new file `layouts/partials/content.html` in your site’s root directory with the following content:

```auto
{{- .Content -}}

<div class="author">{{- .Params.author -}}</div>

```

Add a `author` field to the front matter in each of your pages.

That should do the job.

---

_[View the full topic](https://discourse.gohugo.io/t/displaying-author-and-date-in-content/34505)._
