website/layouts/_default/index.js
2021-03-09 18:56:02 +05:30

10 lines
No EOL
229 B
JavaScript

var docs = [
{{ range $index, $page := (where .Site.Pages "Section" "docs") -}}
{
id: {{ $index }},
title: "{{ .Title }}",
description: "{{ .Params.description }}",
href: "{{ .URL | absURL }}"
},
{{ end -}}
];