Hi everyone,
I tried to search for it and I tried the order solution and the sort solutions but I cannot get it to work.
in the data folder I have an erp_leaft.toml with this data:
[branche]
name = "Lösungen nach Branche"
short_name = "nach Branche"
[branche.malerundgipser]
weight = 0
name = "Maler und Gipser"
description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste deserunt, ducimus..."
internal_link = "produkte/enterprise/maler-und-gipser"
[branche.treuhand]
weight = 1
name = "Maler und Gipser"
description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste deserunt, ducimus..."
internal_link = "produkte/enterprise/maler-und-gipser"
[branche.immobilienbewirtschaftung]
weight = 2
name = "Immobilienbewirtschaftung"
description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste deserunt, du`cimus..."
internal_link = "produkte/enterprise/maler-und-gipser"
and tried to sort the data with .ByWeight and sort “weight” but nothing works. is it not supported or am I doing something wrong?
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ range sort $data.products.erp_leafs.branche "weight" }}
{{ .name }}
{{ end }}
can someone help me please?
thank you!
y