forked from bitcoinops/bitcoinops.github.io
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtopics.json
More file actions
23 lines (23 loc) · 757 Bytes
/
topics.json
File metadata and controls
23 lines (23 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
---
{% capture raw_categories %}
{%- for topic in site.topics -%}
{%- for category in topic.categories -%}
{{category}}|
{%- endfor -%}
{%- endfor -%}
{% endcapture %}
{% assign categories = raw_categories | split: "|" | sort_natural | uniq %}
[
{% for topic in site.topics %}
{% assign topic_slug = topic.shortname | default: topic.title | slugify %}
{
"title": {{ topic.title | jsonify }},
"slug": {{ topic_slug | jsonify }},
"optech_url": "{{ site.url }}{{ topic.url }}",
"categories": {{ topic.topic-categories | jsonify }},
"aliases": {{ topic.title-aliases | jsonify }},
"excerpt": {{ topic.excerpt | jsonify }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]