-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiscover-index.json
More file actions
62 lines (62 loc) · 2.17 KB
/
Copy pathdiscover-index.json
File metadata and controls
62 lines (62 loc) · 2.17 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
layout: null
permalink: /assets/data/discover-index.json
sitemap: false
---
[
{% assign needs_comma = false %}
{% for item in site.data.discover.items %}
{% if needs_comma %},{% endif %}
{
"title": {{ item.title | jsonify }},
"category": {{ item.category | jsonify }},
"type": {{ item.type | jsonify }},
"url": {{ item.url | jsonify }},
"description": {{ item.description | jsonify }},
"keywords": {{ item.keywords | jsonify }},
"external": {{ item.external | default: false | jsonify }},
"featured": {{ item.featured | default: false | jsonify }}
}
{% assign needs_comma = true %}
{% endfor %}
{% if needs_comma %},{% endif %}
{
"title": "Reading Library",
"category": "Learn",
"type": "Reading library",
"url": "/library/",
"description": "Read verified open-access books, explore legal reading sources, professional recommendations, and original weekly reading companions.",
"keywords": ["library", "books", "reading", "open access", "medical imaging", "statistics", "weekly reading"],
"external": false,
"featured": true
}
{% assign needs_comma = true %}
{% for note in site.reading_notes %}
{% if needs_comma %},{% endif %}
{
"title": {{ note.title | jsonify }},
"category": "Learn",
"type": "Weekly reading note",
"url": {{ note.url | jsonify }},
"description": {% if note.summary %}{{ note.summary | jsonify }}{% else %}{{ note.excerpt | strip_html | normalize_whitespace | truncate: 220 | jsonify }}{% endif %},
"keywords": {{ note.keywords | default: empty | jsonify }},
"external": false,
"featured": false
}
{% assign needs_comma = true %}
{% endfor %}
{% for post in site.posts %}
{% if needs_comma %},{% endif %}
{
"title": {{ post.title | jsonify }},
"category": "Insights",
"type": "Article",
"url": {{ post.url | jsonify }},
"description": {% if post.description %}{{ post.description | jsonify }}{% else %}{{ post.excerpt | strip_html | normalize_whitespace | truncate: 220 | jsonify }}{% endif %},
"keywords": [{% if post.category %}{{ post.category | jsonify }}{% endif %}],
"external": false,
"featured": false
}
{% assign needs_comma = true %}
{% endfor %}
]