How do I loop through this data file and display the quotes on each author’s page?
Author pages are named: jane-doe.md and john-smith.md in content/author
quotes.yml
Thanks for the help. For some reasons it’s giving me a GO error, but if I hard code .File.TranslationBaseName with the actual file base name it worked:
{{ range (index .Site.Data.quotes "jane-doe").quotes }}
{{ .position }}: {{ .quote }}
{{ end }}
So I’m guessing the error is from this line: index .Site.Data.quotes .File.TranslationBaseName
I tried to put .File.TranslationBaseName in quotes, but still didn’t work.