mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 08:22:40 +00:00
15 lines
393 B
HTML
15 lines
393 B
HTML
{
|
|
"pages": [
|
|
{% set comma = joiner(',') %}
|
|
{% for item in articles + pages %}
|
|
{{comma()}}
|
|
{
|
|
"title": {{item.title|striptags|tojson}},
|
|
"text": {{item.content|striptags|tojson}},
|
|
"tags": "{{' '.join(item.tags|map(attribute="name"))}}",
|
|
"loc": "{{ SITEURL }}/{{item.url}}"
|
|
}
|
|
{% endfor %}
|
|
]
|
|
}
|