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"> <ul>
{% for tag in index %} {% for key, value in texts %}
<li class="index__keyword tag tag--{{ tag.type }}">{{ tag.name }} <li>{{ key }}
<ul> <ul>
{% for page in tag.pages %} {% for text in value %}
<li><a href="#">{{ page.title }}</a></li> <li>{{ text.title }}, {{ text.author }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
</li> </li>
{% endfor %} {% endfor %}
</ul> </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