diff options
| author | EuAndreh <eu@euandre.org> | 2020-12-24 10:55:38 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-12-24 13:07:16 -0300 |
| commit | 7be007ffb34d4f1be727c9d91570f32b47203117 (patch) | |
| tree | 074c665a4c9a3fc51ddca41282d84783bbc432bf /site | |
| parent | TODOs.org (diff) | |
| download | euandre.org-7be007ffb34d4f1be727c9d91570f32b47203117.tar.gz euandre.org-7be007ffb34d4f1be727c9d91570f32b47203117.tar.xz | |
Add support for screencasts, behind a feature flag
Diffstat (limited to '')
| -rw-r--r-- | site.json | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -116,5 +116,26 @@ "slug": "{{ podcast.slug }}" }{% unless forloop.last %},{% endunless %} {% endfor %} + ], + "screencasts": [ + {% assign filtered_screencasts = "" | split:"" %} + {% for screencast in site.screencasts %} + {% unless screencast.plaintext %} + {% assign filtered_screencasts = filtered_screencasts | push:screencast %} + {% endunless %} + {% endfor %} + {% for screencast in filtered_screencasts %} + { + "title": "{{ screencast.title | smartify }}", + "date": "{{ screencast.date }}", + "url": "{{ screencast.url }}", + "lang": "{{ screencast.lang }}", + "ref": "{{ screencast.ref }}", + "layout": "{{ screencast.layout }}", + "content": {{ screencast.content | strip_html | jsonify }}, + "video": "{{ screencast.video }}", + "slug": "{{ screencast.slug }}" + }{% unless forloop.last %},{% endunless %} + {% endfor %} ] } |
