I have a partial like this:
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ $related }}
{{ with $related }}
<h3>{{ i18n "weitereArtikel" }}</h3>
<ul>
{{ range . }}
<li><b><a href="{{ .RelPermalink | relLangURL }}">{{ .Title }}</a></b><br>
{{if .Params.Description }}
<em>{{ .Description }}</em><br>
{{ end }}
</li>
{{ end }}
</ul>
{{ end }}
On the page (single.html in section “blog”) the variable $related
in line 2 says Pages(0)
- so obviously no pages found to render.
I also have a block like this in config.toml
[related]
threshold = 80.0
includeNewer = true
toLower = false
[[related.indices]]
name = "keywords"
weight = 50.0
[[related.indices]]
name = "sometaxonomy"
weight = 60.0
[[related.indices]]
name = "someothertaxonomy"
weight = 60.0
This setup is running on 2 websites with no problem.
But it does not on a third website.
Only difference: this third website is set up in 2 languages.
I could not find any reference what to possibly change for a multi language setup if wanting to show related pages.