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 'layouts/_default/index.js')
-rw-r--r--layouts/_default/index.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/_default/index.js b/layouts/_default/index.js
new file mode 100644
index 0000000..2dd84f7
--- /dev/null
+++ b/layouts/_default/index.js
@@ -0,0 +1,10 @@
+var docs = [
+{{ range $index, $page := (where .Site.Pages "Section" "docs") -}}
+ {
+ id: {{ $index }},
+ title: "{{ .Title }}",
+ description: "{{ .Params.description }}",
+ href: "{{ .URL | absURL }}"
+ },
+{{ end -}}
+]; \ No newline at end of file