Displaying author and date in content

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:

{{- .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.

1 Like