cc-docs/layouts/_default/index.js
2023-07-04 16:33:06 +02:00

10 lines
229 B
JavaScript

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