This is great! I was super excited to see better Related-Content support. However, I was unable to get the custom configurations working.
I added this to my single page template as recommended in the Release Notes:
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>See Also</h3>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}
It worked as expected. However, I attempted to add some custom configuration (as described in the Related Content section). Something like this:
[related]
includeNewer = true
And whether I use “true” or “false”, simply adding this [related] portion in my config.toml actually makes that part of the template stop working (the entire “See Also” section disappears). I feel like something weird is happening and I wanted to see if it happened to anyone else before I dig deeper?
Thanks!
EDIT: Ahhh, I know what’s wrong. I figured out that I cannot pick and choose the config options. I had initially wanted to change only the includeNewer, but it ended up resetting the rest of the options. I needed to add a set of [[related.indices]] to get it working again. Works great now!