diff options
| author | EuAndreh <eu@euandre.org> | 2020-12-19 02:19:37 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-12-19 13:27:57 -0300 |
| commit | 1a96af1f442ef1c1393fa1ce3a759dc16ce75f23 (patch) | |
| tree | 934bb45aaa09fda119926a60f52d64fc0d859db3 /site | |
| parent | default.nix: Use --delete option when publishing (diff) | |
| download | euandre.org-1a96af1f442ef1c1393fa1ce3a759dc16ce75f23.tar.gz euandre.org-1a96af1f442ef1c1393fa1ce3a759dc16ce75f23.tar.xz | |
Add Podcast structure, with public entrypoint commented out
Diffstat (limited to '')
| -rw-r--r-- | site.json | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -95,5 +95,26 @@ "content": {{ slide.content | strip_html | jsonify }} }{% unless forloop.last %},{% endunless %} {% endfor %} + ], + "podcasts": [ + {% assign filtered_podcasts = "" | split:"" %} + {% for podcast in site.podcasts %} + {% unless podcast.plaintext %} + {% assign filtered_podcasts = filtered_podcasts | push:podcast %} + {% endunless %} + {% endfor %} + {% for podcast in filtered_podcasts %} + { + "title": "{{ podcast.title | smartify }}", + "date": "{{ podcast.date }}", + "url": "{{ podcast.url }}", + "lang": "{{ podcast.lang }}", + "ref": "{{ podcast.ref }}", + "layout": "{{ podcast.layout }}", + "content": {{ podcast.content | strip_html | jsonify }}, + "audio": "{{ podcast.audio }}" + }{% unless forloop.last %},{% endunless %} + {% endfor %} + ] } |
