Initial commit
This commit is contained in:
commit
a82a9bf4c8
65 changed files with 18450 additions and 0 deletions
12
layouts/index.json
Normal file
12
layouts/index.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[{{ range $index, $page := .Site.Pages }}
|
||||
{{- 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 -}}]
|
||||
Loading…
Add table
Add a link
Reference in a new issue