diff --git a/themes/api-theme/assets/scss/.main.scss.swp b/themes/api-theme/assets/scss/.main.scss.swp deleted file mode 100644 index da5c81b..0000000 Binary files a/themes/api-theme/assets/scss/.main.scss.swp and /dev/null differ diff --git a/themes/api-theme/layouts/_default/item.api.json b/themes/api-theme/layouts/_default/item.api.json index fd727cf..f324d0a 100644 --- a/themes/api-theme/layouts/_default/item.api.json +++ b/themes/api-theme/layouts/_default/item.api.json @@ -1,7 +1,7 @@ { "name": "{{ .Slug }}", "title": "{{ .Title }}", - "title": "{{ .Permalink }}", + "permalink": "{{ .Permalink }}", "featuredImage": "{{ .Params.featuredImage }}", "featuredVideo": "{{ .Params.featuredVideo }}", "n":"{{ .Params.n }}", diff --git a/themes/api-theme/layouts/_default/item_reduced.api.json b/themes/api-theme/layouts/_default/item_reduced.api.json index 898aa99..90ff32a 100644 --- a/themes/api-theme/layouts/_default/item_reduced.api.json +++ b/themes/api-theme/layouts/_default/item_reduced.api.json @@ -1,5 +1,6 @@ { "name": "{{ .Slug }}", "title": "{{ .Title }}", - "permalink": "{{ .Permalink }}" + "permalink": "{{ .Permalink }}", + "content": "{{ .Content | jsonify }}" } diff --git a/themes/api-theme/layouts/_default/list.api.json b/themes/api-theme/layouts/_default/list.api.json index 0b503fe..ec820b3 100644 --- a/themes/api-theme/layouts/_default/list.api.json +++ b/themes/api-theme/layouts/_default/list.api.json @@ -3,7 +3,7 @@ {{ with .Section }}"section" : "{{ . }}",{{ end }} "count" : "{{ len .Data.Pages }}", "items" : [{{ range $i, $e := .Data.Pages }} -{{ if $i }}, {{ end }}{{ .Render "item_reduced" }} +{{ if $i }}, {{ end }}{{ .Render "item" }} {{ end }}] } {{ end }}