diff --git a/layouts/_default/baseof.json b/layouts/_default/baseof.json new file mode 100644 index 0000000..32a51de --- /dev/null +++ b/layouts/_default/baseof.json @@ -0,0 +1,3 @@ +{ + "data" : {{ block "response" .}}{{ end }} +} diff --git a/layouts/_default/item.json.json b/layouts/_default/item.json.json new file mode 100644 index 0000000..f55d434 --- /dev/null +++ b/layouts/_default/item.json.json @@ -0,0 +1,4 @@ +{ + "name": "{{ .Title }}", + "permalink" : "{{ .Permalink }}" +} diff --git a/layouts/_default/list.json.json b/layouts/_default/list.json.json new file mode 100644 index 0000000..41b8d97 --- /dev/null +++ b/layouts/_default/list.json.json @@ -0,0 +1,7 @@ +{{ define "response" }} +[ + {{ range $index, $e := .Data.Pages }} + {{ if $index }}, {{ end }}{{ .Render "item" }} + {{ end }} +] +{{ end }} diff --git a/layouts/_default/single.json.json b/layouts/_default/single.json.json new file mode 100644 index 0000000..1e1a468 --- /dev/null +++ b/layouts/_default/single.json.json @@ -0,0 +1 @@ +{{ define "response" }} {{ .Render "item" }} {{ end }}