statiqdev / Website

Code for the statiq.dev website, built with Statiq.
MIT License
21 stars 34 forks source link

Documentation on ToLookup is inaccurate #23

Open alanta opened 3 years ago

alanta commented 3 years ago

I was looking at this section: https://statiq.dev/framework/documents/accessing-metadata#metadata-lookup

The description is not entirely accurate. It gives the impression that ToLookup picks up multiple values in the meta data, but after some testing I found it only picks up the first. To create a lookup when there may be multiple values in the metadata item ToLookupMany should be used.