mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-10 16:37:50 -04:00
Use docs.json to generate default config for related content
This commit is contained in:
parent
74d5082c72
commit
57dca93df7
@ -113,19 +113,7 @@ Hugo provides a sensible default configuration of Related Content, but you can f
|
||||
|
||||
Without any `related` configuration set on the project, Hugo's Related Content methods will use the following.
|
||||
|
||||
{{< code-toggle file="hugo" >}}
|
||||
related:
|
||||
threshold: 80
|
||||
includeNewer: false
|
||||
toLower: false
|
||||
indices:
|
||||
- name: keywords
|
||||
weight: 100
|
||||
- name: date
|
||||
weight: 10
|
||||
{{< /code-toggle >}}
|
||||
|
||||
Note that if you have configured `tags` as a taxonomy, `tags` will also be added to the default configuration above with the weight of `80`.
|
||||
{{< code-toggle config="related" />}}
|
||||
|
||||
Custom configuration should be set using the same syntax.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user