summaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-12-24 10:55:38 -0300
committerEuAndreh <eu@euandre.org>2020-12-24 13:07:16 -0300
commit7be007ffb34d4f1be727c9d91570f32b47203117 (patch)
tree074c665a4c9a3fc51ddca41282d84783bbc432bf /site
parentTODOs.org (diff)
downloadeuandre.org-7be007ffb34d4f1be727c9d91570f32b47203117.tar.gz
euandre.org-7be007ffb34d4f1be727c9d91570f32b47203117.tar.xz
Add support for screencasts, behind a feature flag
Diffstat (limited to '')
-rw-r--r--site.json21
1 files changed, 21 insertions, 0 deletions
diff --git a/site.json b/site.json
index 66dac32..f27c7b7 100644
--- a/site.json
+++ b/site.json
@@ -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 %}
]
}