Add page api template
This commit is contained in:
parent
577aae1eed
commit
46f84c73d1
5
themes/api-theme/layouts/_default/item_reduced.api.json
Normal file
5
themes/api-theme/layouts/_default/item_reduced.api.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name": "{{ .Slug }}",
|
||||||
|
"title": "{{ .Title }}",
|
||||||
|
"permalink": "{{ .Permalink }}",
|
||||||
|
}
|
12
themes/api-theme/layouts/_default/page.api.json
Normal file
12
themes/api-theme/layouts/_default/page.api.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "{{ .Slug }}",
|
||||||
|
"title": "{{ .Title }}",
|
||||||
|
"title": "{{ .Permalink }}",
|
||||||
|
"featuredImage": "{{ .Params.featuredImage }}",
|
||||||
|
"featuredVideo": "{{ .Params.featuredVideo }}",
|
||||||
|
"n":"{{ .Params.n }}",
|
||||||
|
"s":"{{ .Params.s }}",
|
||||||
|
"e":"{{ .Params.e }}",
|
||||||
|
"o":"{{ .Params.o }}",
|
||||||
|
"content": {{ .Content | jsonify }}
|
||||||
|
}
|
1
themes/api-theme/layouts/_default/single.api.json
Normal file
1
themes/api-theme/layouts/_default/single.api.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{ define "response" }} {{ .Render "item" }} {{ end }}
|
Loading…
Reference in New Issue
Block a user