diff options
Diffstat (limited to 'layouts/_default/index.js')
-rw-r--r-- | layouts/_default/index.js | 10 |
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 |