website/layouts/_default/index.js

10 lines
229 B
JavaScript
Raw Normal View History

2021-03-09 18:56:02 +05:30
var docs = [
{{ range $index, $page := (where .Site.Pages "Section" "docs") -}}
{
id: {{ $index }},
title: "{{ .Title }}",
description: "{{ .Params.description }}",
href: "{{ .URL | absURL }}"
},
{{ end -}}
];