portails/layouts/_default/index.js

10 lines
229 B
JavaScript
Raw Normal View History

2020-11-04 08:26:58 +01:00
var docs = [
{{ range $index, $page := (where .Site.Pages "Section" "docs") -}}
{
id: {{ $index }},
title: "{{ .Title }}",
description: "{{ .Params.description }}",
href: "{{ .URL | absURL }}"
},
{{ end -}}
];