-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathposts.js
More file actions
20 lines (20 loc) · 796 Bytes
/
posts.js
File metadata and controls
20 lines (20 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
---
jekyllPostsCallback([
{% for post in site.posts %}
{
"id" : "{{ post.id }}",
"title" : "{{ post.title | escape }}",
"category" : "{{ post.category }}",
"tags" : "{{ post.tags | join: ', ' }}",
"url" : "{{ post.url }}",
"path" : "{{ post.path }}",
"next" : "{{ post.next.url }}",
"previous" : "{{ post.previous.url }}",
"date" : "{{ post.date }}",
"shortdate" : "{{ post.date | date : '%B %d, %Y' }}",
"content" : "{{ post.content | escape | strip_newlines }}",
"excerpt" : "{{ post.excerpt | escape | strip_newlines }}"
} {% if forloop.last %}{% else %},{% endif %}
{% endfor %}
]);