Commit 5a2c848f authored by alexandre's avatar alexandre

Added text result list structure

parent 09f18569
{
"texts": {
"diary": [
{
"title": "Troubled Gardens",
"keyword": "Sarah Magnan"
},
{
"title": "Traveling through square liberateurs",
"keyword": "Molenbeek"
},
{
"title": "Three Days a Week",
"keyword": "Sina Seiffee"
}
],
"manifesto": [
{
"title": "Ecole Mondiale Bruocsella",
"keyword": "Pierre Rubio"
}
]
}
}
<ul class="index">
{% for tag in index %}
<li class="index__keyword tag tag--{{ tag.type }}">{{ tag.name }}
<ul>
{% for page in tag.pages %}
<li><a href="#">{{ page.title }}</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
<ul>
{% for key, value in texts %}
<li>{{ key }}
<ul>
{% for text in value %}
<li>{{ text.title }}, {{ text.author }}</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment