first commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{{- $items := slice -}}
|
||||
{{- range site.RegularPages -}}
|
||||
{{- $items = $items | append (dict
|
||||
"title" .Title
|
||||
"url" .RelPermalink
|
||||
"section" (cond (eq .Section "apps") (.Params.category | default "Applications") "Getting started")
|
||||
"tagline" (.Params.tagline | default "")
|
||||
"replaces" (delimit (.Params.replaces | default slice) ", ")
|
||||
"headings" (delimit (findRE `(?m)^#{2,3} .+$` .RawContent) " " | replaceRE `#+ ` "")
|
||||
"body" (.Plain | truncate 1200)
|
||||
) -}}
|
||||
{{- end -}}
|
||||
{{- $items | jsonify -}}
|
||||
Reference in New Issue
Block a user