-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.page
executable file
·38 lines (31 loc) · 1.28 KB
/
about.page
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
---
title: Feed
description: RSS and JSON feed feature.
icon: 'M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M7.5,15A1.5,1.5 0 0,0 6,16.5A1.5,1.5 0 0,0 7.5,18A1.5,1.5 0 0,0 9,16.5A1.5,1.5 0 0,0 7.5,15M6,10V12A6,6 0 0,1 12,18H14A8,8 0 0,0 6,10M6,6V8A10,10 0 0,1 16,18H18A12,12 0 0,0 6,6Z'
color: '#ea6322'
author: Taufik Nurrohman
type: Markdown
version: 3.0.1
...
### Usage
- Normal view → `./route/to/article`
- JSON view → `./route/to/article/feed.json`
- RSS view → `./route/to/article/feed.xml`
### Parameter
Some URL parameters are available to manipulate the feed results, so that you can allow third party applications to
fetch your data:
- `chunk` → Determine how many pages to show per request. Default is `25`.
- `deep` → Determine how many folder path to recurse. Default is `0`.
- `fire` → JavaScript callback function name that bounds to the `window` object.
- `part` → Current page offset. Default is `1`.
- `query` → Determine the search query to filter the feed results.
- `sort` → Default is `[-1,"time"]` to sort pages descending by the `time` data.
Example API usage:
~~~ .html
<script>
function render(json) {
console.log(json);
}
</script>
<script src="http://127.0.0.1/article/feed.json?chunk=5&fire=render"></script>
~~~