Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matsuyoshi30/harbor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatsuyoshi <sfbgwm30@gmail.com>2021-10-23 16:43:03 +0300
committermatsuyoshi <sfbgwm30@gmail.com>2021-10-23 16:45:19 +0300
commit16b0a4e50730e93723589afc5963522138855110 (patch)
tree2ae3724a77b28911e807bd57f0bb474783d1fde2
parentd409ccb0cc1632b19ff8b13dc2026cc0167e600f (diff)
Add id to list.json
-rw-r--r--layouts/_default/list.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/list.json b/layouts/_default/list.json
index 65d080a..618a67a 100644
--- a/layouts/_default/list.json
+++ b/layouts/_default/list.json
@@ -3,6 +3,7 @@
{{ if eq .Type "post" }}
{{ if ne $index 0 }},{{ end }}
{
+ "id": $index,
"ref": "{{ $page.Permalink }}",
"title": {{ $page.Title | jsonify }},
"section": "{{ $page.Section }}",