upd plg
This commit is contained in:
parent
de69e68186
commit
09d3c937cb
@ -8,7 +8,6 @@ author:
|
||||
name: Sharad Raj Singh Maurya
|
||||
email: dev_sharad@outlook.com
|
||||
|
||||
incremental: true
|
||||
plugins:
|
||||
- jekyll-paginate
|
||||
- jemoji
|
||||
@ -32,3 +31,6 @@ defaults:
|
||||
path: ""
|
||||
values:
|
||||
layout: "post"
|
||||
|
||||
|
||||
exclude: ['sitemap.xml','feed.xml', 'LICENSE', 'README.md']
|
@ -4,6 +4,8 @@ title: Hello Jekyll
|
||||
date: 2018-10-09
|
||||
tag: Jekyll
|
||||
author: Alexa Crisis
|
||||
categories: ["Jekyll"]
|
||||
image: "a.png"
|
||||
---
|
||||
|
||||
Text can be **bold**, _italic_, ~~strikethrough~~ or `keyword`
|
||||
|
44
api.json
Normal file
44
api.json
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
layout: null
|
||||
---
|
||||
|
||||
{
|
||||
"website_title": "{{ site.title | xml_escape }}",
|
||||
"website_url": "{{ "/" | absolute_url }}",
|
||||
"posts": [
|
||||
{% for post in site.posts %}
|
||||
{
|
||||
"title": {{ post.title | jsonify }},
|
||||
"content_text": {{ post.content | strip_html | strip_newlines | jsonify }},
|
||||
"content_html": {{ post.content | strip_newlines | jsonify }},
|
||||
"url": "{{ post.url | absolute_url }}",
|
||||
{% if post.image.size > 0 %}
|
||||
"image": {{ post.image | jsonify }},{% endif %}
|
||||
{% if post.categories.size > 0 %}
|
||||
"categories": {{ post.categories | jsonify }},{% endif %}
|
||||
{% if post.tags.size > 0 %}
|
||||
"tags": {{ post.tags | jsonify }},{% endif %}
|
||||
"date_published": "{{ post.date | date_to_xmlschema }}",
|
||||
"date_modified": "{{ post.date | date_to_xmlschema }}",
|
||||
{% if post.author %}
|
||||
"author": {% if post.author.name %} "{{ post.author.name }}" {% else %} "{{ post.author }}" {% endif %}
|
||||
{% else %}
|
||||
"author": {% if site.author.name %} "{{ site.author.name }}" {% else %} "{{ site.author }}" {% endif %}
|
||||
{% endif %}
|
||||
}{% if forloop.last == false %},{% endif %}
|
||||
{% endfor %}
|
||||
],
|
||||
"pages": [
|
||||
{% for page in site.pages %}
|
||||
{
|
||||
"title": {{ page.title | jsonify }},
|
||||
"content_text": {{ page.content | strip_html | strip_newlines | jsonify }},
|
||||
"content_html": {{ page.content | strip_newlines | jsonify }},
|
||||
"url": "{{ page.url | absolute_url }}",
|
||||
"date_published": "{{ page.date | date_to_xmlschema }}",
|
||||
"date_modified": "{{ page.date | date_to_xmlschema }}"
|
||||
}{% if forloop.last == false %},{% endif %}
|
||||
{% endfor %}
|
||||
]
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user