Skip to content

Commit a09a5c3

Browse files
committed
add api.json and articles.json
1 parent df8ade6 commit a09a5c3

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

api.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: null
3+
sitemap: false
4+
---
5+
{
6+
"articles": [
7+
{% assign filtered_articles = site.articles | where_exp: "article", "article.url contains '/info/api/'" %}
8+
{% for article in filtered_articles %}
9+
{
10+
"title": {{ article.title | jsonify }},
11+
"url": "https://www.dynamsoft.com{{ article.url | relative_url }}",
12+
"content": {{ article.content | strip_html | jsonify }},
13+
"breadcrumb": {{ article.breadcrumbText | default: article.title | jsonify }}
14+
}{% unless forloop.last %},{% endunless %}
15+
{% endfor %}
16+
]
17+
}

articles.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: null
3+
sitemap: false
4+
---
5+
{
6+
"articles": [
7+
{% for article in site.articles %}
8+
{
9+
"title": {{ article.title | jsonify }},
10+
"url": "https://www.dynamsoft.com{{ article.url | relative_url }}",
11+
"content": {{ article.content | strip_html | jsonify }},
12+
"breadcrumb": {{ article.breadcrumbText | default: article.title | jsonify }}
13+
}{% unless forloop.last %},{% endunless %}
14+
{% endfor %}
15+
]
16+
}

0 commit comments

Comments
 (0)