pelican-mg/templates/tipue_search.html
2017-08-10 18:30:29 +02:00

17 lines
417 B
HTML

{
"pages": [
{% set len = (articles + pages)| length %}
{% for item in articles + pages %}
{
"title": "{{item.title|striptags|e}}",
"text":"{{item.content|striptags|e}}",
"tags": "{{item.category}}",
"loc": "{{ SITEURL }}/{{item.url}}"
}{% if loop.index < len %},
{% else %}
{% endif %}
{% endfor %}
]
}