Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.json « layouts - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 984aaa76e1c746289d7083d04da186d1d45844a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[{{ range $index, $page := .Site.Pages }}
{{- if not (hasPrefix $page.Section "_") -}}
{{- if ne $page.Type "json" -}}
{{- if and $index (gt $index 0) -}},{{- end }}
{
	"uri": "{{ $page.Permalink }}",
	"title": "{{ htmlEscape $page.Title}}",
	"tags": [{{ range $tindex, $tag := $page.Params.tags }}{{ if $tindex }}, {{ end }}"{{ $tag| htmlEscape }}"{{ end }}],
	"description": "{{ htmlEscape .Description}}",
	"content": {{$page.Plain | jsonify}}
}
{{- end -}}
{{- end -}}
{{- end -}}]