You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some markdown collection (say $objects), I want to loop through the data of each $object for a Single Object type page:
@foreach($object as $index => $data)
{{index}}: {{$data}}
@endforeach
My issue is I couldn't find a way to automatically filter out global Site Variables and Jigsaw metadata like production, baseUrl, title, description, collections, view.compiled, section, extends, path, sort, etc.
Right now looping through an $object includes these indices, when I only want the data in the YAML block of the $object's markdown file. Is there a function for this already? Any help is appreciated.
The text was updated successfully, but these errors were encountered:
For some markdown collection (say $objects), I want to loop through the data of each $object for a Single Object type page:
My issue is I couldn't find a way to automatically filter out global Site Variables and Jigsaw metadata like production, baseUrl, title, description, collections, view.compiled, section, extends, path, sort, etc.
Right now looping through an $object includes these indices, when I only want the data in the YAML block of the $object's markdown file. Is there a function for this already? Any help is appreciated.
The text was updated successfully, but these errors were encountered: