mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 08:22:40 +00:00
17 lines
417 B
HTML
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 %}
|
|
]
|
|
}
|