-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontent.json
More file actions
27 lines (27 loc) · 876 Bytes
/
content.json
File metadata and controls
27 lines (27 loc) · 876 Bytes
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
---
---
{
"meetups": [
{%- assign word_count = 0 -%}
{%- assign this_word_count = 0 -%}
{%- for post in site.posts -%}
{
"title": {{ post.title | jsonify }},
"url": {{ post.url | absolute_url | jsonify }},
"date": {{ post.date | date_to_xmlschema | jsonify }},
"content": {{ post.content | strip_html | normalize_whitespace | jsonify }},
"categories": {{ post.categories | jsonify }}
}{%- unless forloop.last -%},{%- endunless -%}
{%- endfor -%}
],
"categories": [
{%- assign categories = site.pages | where: "layout","collection" -%}
{%- for category in categories -%}
{
"id": {{ category.collection | jsonify }},
"name": {{ category.human-name | jsonify }},
"url": {{ category.url | absolute_url | jsonify }}
}{%- unless forloop.last -%},{%- endunless -%}
{%- endfor -%}
]
}