I want to iterate with liquid through the list of the yaml variables of Jekyll page without knowing their names and print their key / value.
I illustrate my question with an "object" (wrong) formalism :
As :
{% assign variables = page.data %}
{% for var in variables %}
key-name : {{var.key}} , value : {{var.value}} ,
{% endfor%}
And thus for a post file with the simple yaml front matter :
---
layout: post
title: MyBlog
---
I want to get :
key-name : layout , value : post
key-name : title , value : MyBlog
To be precise, I don't want to loop inside one of the variable itself as this question as I don't know the structure of the Yaml front matter of my jekyll posts because they are each different.
Probably I'm wrong, but I don't find any clear liquid syntax which could do the job.
Thanks