Author bio in hugo blog post not working

So I’ve tried multiple approaches to use the Taxonomies approach to rendering an author profile in a blog post. Multiple attempts have either broken the page or simply didn’t work. I suspect the documentation and articles I’ve been trying to follow are either missing steps or dated. Using both Google and the search feature here has led me down multiple rabbit holes without success. Might be because of the theme, not sure.

The theme in question is https://themes.gohugo.io/hugo-book/ and I’d like to render a bio for the author I assign for a created post. Every time I search for a solution, I end up finding suggestions that don’t appear to be working as described.

A simple, bullet point guide would be amazing.

  • Author profile contents here
  • Front matter content here
  • Create this partial with this content
  • Etc

This is what I’m looking for.
Thanks

This is the guide I thought would work. Followed it closely, perhaps I’m not placing this:

{{- range .Params.authors }}
  {{- with $.Site.GetPage "taxonomyTerm" (printf "authors/%s" (urlize .)) }}
    <figure>
      <img src="{{ .Params.photo }}" alt=""/>
      <figcaption>
        <a href="{{ .Permalink }}">{{ .Params.name }}</a>
      </figcaption>
    </figure>
  {{ end }}
{{ end }}

…into the right area?

Theme is Hugo Book, running Hugo v0.71.1.

Thanks

Resolved it on my own. Had to basically do it by hand.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.