From 2f6bb077488e4861d6bf74b7744950ffc6f36fe2 Mon Sep 17 00:00:00 2001 From: Siroco Date: Fri, 23 Oct 2020 16:22:12 +0200 Subject: [PATCH] Update template lists --- themes/api-theme/assets/scss/.main.scss.swp | Bin 12288 -> 0 bytes themes/api-theme/layouts/_default/item.api.json | 2 +- .../layouts/_default/item_reduced.api.json | 3 ++- themes/api-theme/layouts/_default/list.api.json | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 themes/api-theme/assets/scss/.main.scss.swp 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 da5c81b1a40f237cbf1524cdf2cf340307de5221..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI&zi!h&90%}UyJaXK7#Kk1Xv-(P<`MR7a2w|0ZImKuQ9F@Pth zA8$Ur_6)wyPJvU_q^9gR{94h%8YO~ebNRwyBOg`^hBxK5Pjk~3;rhm{>#JAq+zzj- zu5GM_E9+}vTPiCz+dRE5wFrGz7Se^hr-D&6})JFm&0MPeY z(3*keMm;Jy=I73`6UXn83<;0`36KB@kN^pg011%5e*Kb`#ZQrm5FTNO$_LIiw_)1Go4G~Ct>XD2b6mTiIx*D7Z)q|eY6sc(>j|`t b7?fZzc^NUA&$29m18*2_ozM7k+D_mHtV{IJ 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 }}