1
0

Add page api template

This commit is contained in:
Siroco 2020-10-23 02:16:20 +02:00
parent 577aae1eed
commit 46f84c73d1
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{
"name": "{{ .Slug }}",
"title": "{{ .Title }}",
"permalink": "{{ .Permalink }}",
}

View 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 }}
}

View File

@ -0,0 +1 @@
{{ define "response" }} {{ .Render "item" }} {{ end }}