Two questions:
-
Is it possible to change the configuration of Related Content for a specific section,
posts
, and have the default configuration for all other sections? -
With the following front matter params:
company = “Apple”
keywords = [“iPhone”, “Macbook”]
locations = [“San Francisco”, “New York”]
suppliers = [“Acme Ltd”]
I would like to use the Related Content function to use all these parameters as indices, not just .Keywords
.
If this is not possible, can I somehow modify .Keywords
so it includes all the front matter params listed above so when I use the Related Content function
keywords = ["Apple", "iPhone", "Macbook", "San Francisco", "New York", "Acme Ltd"]
This is the Related Content function from the docs I’m using.
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
{{ range . }}
{{ .Title }}
{{ end }}
{{ end }}