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

github.com/vantagedesign/ace-documentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.json')
-rw-r--r--layouts/index.json12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/index.json b/layouts/index.json
new file mode 100644
index 0000000..84219aa
--- /dev/null
+++ b/layouts/index.json
@@ -0,0 +1,12 @@
+[{{ range $index, $page := .Site.Pages }}
+{{- if and (ne $page.Type "json") (ne $page.Type "html") -}}
+{{- if and $index (gt $index 0) -}},{{- end }}
+{
+ "uri": "{{ $page.Permalink }}",
+ "title": "{{ htmlEscape $page.Title}}",
+ "tags": [{{ range $tindex, $tag := $page.Params.tags }}{{ if $tindex }}, {{ end }}"{{ $tag| htmlEscape }}"{{ end }}],
+ "description": "{{ htmlEscape .Description}}",
+ "content": {{$page.Plain | jsonify}}
+}
+{{- end -}}
+{{- end -}}]