This commit is contained in:
sharadcodes 2019-11-26 00:41:43 +05:30
parent 09d3c937cb
commit 3747bc3bca

View File

@ -31,6 +31,7 @@ layout: null
"pages": [ "pages": [
{% for page in site.pages %} {% for page in site.pages %}
{ {
"id": {{page.title | downcase | jsonify}},
"title": {{ page.title | jsonify }}, "title": {{ page.title | jsonify }},
"content_text": {{ page.content | strip_html | strip_newlines | jsonify }}, "content_text": {{ page.content | strip_html | strip_newlines | jsonify }},
"content_html": {{ page.content | strip_newlines | jsonify }}, "content_html": {{ page.content | strip_newlines | jsonify }},
@ -40,5 +41,4 @@ layout: null
}{% if forloop.last == false %},{% endif %} }{% if forloop.last == false %},{% endif %}
{% endfor %} {% endfor %}
] ]
} }