48 lines
1.9 KiB
JSON
48 lines
1.9 KiB
JSON
---
|
|
layout: null
|
|
regenerate: true
|
|
---
|
|
{
|
|
"version": "https://jsonfeed.org/version/1.1",
|
|
"title": {{ site.title | jsonify }},
|
|
"home_page_url": {{ site.url | jsonify }},
|
|
"feed_url": {{ page.url | absolute_url | jsonify }},
|
|
"author": {
|
|
"name": {{ site.author.name | jsonify }},
|
|
"url": {{ site.author.url | jsonify }},
|
|
"avatar": {{ site.logo | absolute_url | jsonify }}
|
|
},
|
|
"authors": [
|
|
{
|
|
"name": {{ site.author.name | jsonify }},
|
|
"url": {{ site.author.url | jsonify }},
|
|
"avatar": {{ site.logo | absolute_url | jsonify }}
|
|
}
|
|
],
|
|
"icon": {{ site.logo | absolute_url | jsonify }},
|
|
"favicon": {{ '/img/favicon/favicon.ico' | absolute_url | jsonify }},
|
|
"language": "en",
|
|
"items": [{% for post in site.posts limit: site.feed.limit %}{% unless post.draft %}
|
|
{%- capture post_content -%}
|
|
{{ post.content |
|
|
re_substitute: '<\bscript\b.*>.*<\/\bscript\b>', '' |
|
|
re_substitute: '<\biframe\b.*>.*<\/\biframe\b>', ''
|
|
}}
|
|
{%- endcapture -%}
|
|
{
|
|
"title": {{ post.title | jsonify }},
|
|
"date_published": {{ post.date | date_to_xmlschema | jsonify }},
|
|
"date_modified": {{ post.last_modified_at | default: post.date | date_to_xmlschema | jsonify }},
|
|
"id": {{ post.url | absolute_url | jsonify }},
|
|
"url": {{ post.url | absolute_url | jsonify }},
|
|
"image": {{ post.image | absolute_url | jsonify }},
|
|
"author": {
|
|
"name": {{ site.author.name | jsonify }}
|
|
},
|
|
"content_html": {{ post_content | markdownify | jsonify }},
|
|
"summary": {{ post.description | jsonify }},
|
|
"tags": [{{ post.category | jsonify }}]
|
|
}{% unless forloop.last %},{% endunless %}{% endunless %}{% endfor %}
|
|
]
|
|
}
|