forked from mmistakes/jekyll-theme-hpstr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts.json
More file actions
32 lines (32 loc) · 1.14 KB
/
posts.json
File metadata and controls
32 lines (32 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
layout: null
---
{
"posts": [
{% for post in site.posts %}
{
"identifier": "{{ post.identifier }}",
"title": "{{ post.title | replace: '"', '\"' }}",
"titleNoFormatting": "{{ post.title | strip_html | strip_newlines }}",
"content": "{{ post.content | strip_newlines | replace: '"', '\"' }}",
"contentNoFormatting": "{{ post.content | strip_html | strip_newlines }}",
"excerpt": "{{ post.excerpt | strip_newlines | replace: '"', '\"' }}",
"excerptNoFormatting": "{{ post.excerpt | strip_html | strip_newlines }}",
"url": "https:{{ site.url }}{{ post.url | json }}",
{% if post.image.feature %}
"image": "https:{{ site.url }}/images/{{ post.image.feature }}",
{% endif %}
"tags": ["{{ post.tags | join: '","' }}"],
"created_at": {{ post.date | date: "%s" }}
{% if post.modified %}
,"updated_at": {{ post.modified | date: "%s" }}
{% else %}
,"updated_at": {{ post.date | date: "%s" }}
{% endif %}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
],
"meta": {
"next": null
}
}