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

github.com/h-enk/doks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/index.js')
-rw-r--r--assets/js/index.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/assets/js/index.js b/assets/js/index.js
new file mode 100644
index 0000000..82dfda8
--- /dev/null
+++ b/assets/js/index.js
@@ -0,0 +1,11 @@
+var docs = [
+{{ range $index, $page := (where .Site.Pages "Section" "docs") -}}
+ {
+ id: {{ $index }},
+ href: "{{ .Permalink | absURL }}",
+ title: {{ .Title | jsonify }},
+ description: {{ .Params.description | jsonify }},
+ content: {{ .Content | jsonify }}
+ },
+{{ end -}}
+]; \ No newline at end of file