-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
incidents.json.liquid
25 lines (25 loc) · 961 Bytes
/
incidents.json.liquid
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
---
permalink: incidents.json
---
{
"version": "https://jsonfeed.org/version/1",
"title": {{ site.title | smartify | jsonify }},
"feed_url": "{{ site.url }}/incidents.json",
"expired": false,
"items": [
{%- assign sorted_incidents = site.incidents | sort: "date_time" | reverse -%}
{% for incident in sorted_incidents %}
{
"number": {{ incident.number | jsonify }},
"google_maps_link": {{ incident.google_maps_link | jsonify }},
"date": {{ incident.date_time | date: "%a, %B %d, %Y" | jsonify }},
"time": {{ incident.date_time | date: "%-I:%M:%S %p" | jsonify }},
"location": {{ incident.location | jsonify }},
"latitude": {{ incident.latitude | jsonify }},
"longitude": {{ incident.longitude | jsonify }},
"type": {{ incident.type | jsonify }},
"raw_incident" : {{ incident.content | strip_html | jsonify }}
}{%- unless forloop.last == true -%},{%- endunless -%}
{% endfor %}
]
}