mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
config: Add a type value for the tags related config entry
Which doesn't have any practical difference, but it looks cleaner in the generated docs.
This commit is contained in:
@@ -240,7 +240,7 @@ var allDecoderSetups = map[string]decodeWeight{
|
|||||||
} else {
|
} else {
|
||||||
p.c.Related = related.DefaultConfig
|
p.c.Related = related.DefaultConfig
|
||||||
if _, found := p.c.Taxonomies["tag"]; found {
|
if _, found := p.c.Taxonomies["tag"]; found {
|
||||||
p.c.Related.Add(related.IndexConfig{Name: "tags", Weight: 80})
|
p.c.Related.Add(related.IndexConfig{Name: "tags", Weight: 80, Type: related.TypeBasic})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Reference in New Issue
Block a user